提交 68d1441b authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Fixed test so that it passes following changes to TensorType.values_eq_approx

上级 51d68468
...@@ -581,12 +581,8 @@ class Test_check_isfinite(unittest.TestCase): ...@@ -581,12 +581,8 @@ class Test_check_isfinite(unittest.TestCase):
x = theano.tensor.dvector() x = theano.tensor.dvector()
f = theano.function([x], (x+2) * 5, mode=debugmode.DebugMode(check_isfinite=False)) f = theano.function([x], (x+2) * 5, mode=debugmode.DebugMode(check_isfinite=False))
# the DestroyMap checker should be triggered by Nan != Nan #nan should go through
try: f(numpy.log([3, -4, 5]))
f(numpy.log([3, -4, 5]))
assert False
except debugmode.BadDestroyMap:
pass
#inf should go through #inf should go through
infs = numpy.asarray([1.0,1.,1.])/0 infs = numpy.asarray([1.0,1.,1.])/0
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论