提交 ff09b7ff authored 作者: Frederic Bastien's avatar Frederic Bastien

Fix a test in DebugMode

上级 4afefe16
...@@ -4271,7 +4271,8 @@ def test_join_inplace(): ...@@ -4271,7 +4271,8 @@ def test_join_inplace():
data = numpy.array([3, 4, 5], dtype=theano.config.floatX) data = numpy.array([3, 4, 5], dtype=theano.config.floatX)
print (f(data, 0)) print (f(data, 0))
assert f(data, 0) is data if theano.config.mode not in ["DebugMode", "DEBUG_MODE"]:
assert f(data, 0) is data
assert numpy.allclose(f(data, 0), [3, 4, 5]) assert numpy.allclose(f(data, 0), [3, 4, 5])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论