提交 1a42bf9b authored 作者: Pascal Lamblin's avatar Pascal Lamblin 提交者: GitHub

Merge pull request #5342 from nouiz/test

Fix a test in DebugMode
...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论