提交 3a0de13a authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Add test for the elemwise issue.

上级 e98220f9
......@@ -1493,6 +1493,12 @@ CosInplaceTester = makeBroadcastTester(
grad=_grad_broadcast_unary_wide,
inplace=True)
def test_py_c_match():
a = tensor.TensorType(dtype='int8', broadcastable=(False,))()
f = theano.function([a], tensor.arccos(a), mode='DebugMode')
# This can fail in DebugMode
f(numpy.asarray([1, 0, -1], dtype='int8'))
ArccosTester = makeBroadcastTester(op=tensor.arccos,
expected=upcast_float16_ufunc(numpy.arccos),
good=_good_broadcast_unary_arcsin,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论