提交 591f69ca authored 作者: Frederic Bastien's avatar Frederic Bastien

fix test following the addition of deepcopy.

上级 5555bcea
...@@ -428,7 +428,8 @@ def makeSharedTester(shared_constructor_, ...@@ -428,7 +428,8 @@ def makeSharedTester(shared_constructor_,
assert numpy.all(shape_constant_fct()==shape_op_fct()) assert numpy.all(shape_constant_fct()==shape_op_fct())
topo_cst = shape_constant_fct.maker.env.toposort() topo_cst = shape_constant_fct.maker.env.toposort()
if theano.config.mode!='FAST_COMPILE': if theano.config.mode!='FAST_COMPILE':
assert len(topo_cst)==0 assert len(topo_cst)==1
topo_cst[0].op == theano.compile.function_module.deep_copy_op
# Test that we can take the grad. # Test that we can take the grad.
if isinstance(x1_specify_shape.type, theano.sparse.SparseType): if isinstance(x1_specify_shape.type, theano.sparse.SparseType):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论