提交 6cba56c4 authored 作者: Frederic Bastien's avatar Frederic Bastien

fix test following the new addition of deep copy.

上级 591f69ca
......@@ -3318,7 +3318,9 @@ def test_reshape():
if config.mode=="FAST_COMPILE":
assert len(f_sub.maker.env.toposort())==3
else:
assert len(f_sub.maker.env.toposort())==0
topo = f_sub.maker.env.toposort()
assert len(topo)==1
topo[0].op == theano.compile.function_module.deep_copy_op
#assert numpy.all(f_sub(a_val,numpy.asarray([[0,1],[2,3],[4,5]]))==[2,3])#work in FAST_RUN, but fail on other!
#assert numpy.all(f_sub(a_val,numpy.asarray([[0,1],[2,3],[4,5],[6,7]]))==[2,3])#work in FAST_RUN, but fail on other!
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论