提交 5cfff95b authored 作者: orhanf's avatar orhanf

typo fix

上级 4871d3c1
...@@ -3554,6 +3554,7 @@ class test_assert(utt.InferShapeTester): ...@@ -3554,6 +3554,7 @@ class test_assert(utt.InferShapeTester):
assert topo[0].op == deep_copy_op, topo assert topo[0].op == deep_copy_op, topo
mode = compile.mode.get_default_mode() mode = compile.mode.get_default_mode()
a = theano.tensor.opt.assert_op(x, T.eq(x, 0).any())
f = theano.function([x], a, mode=mode.excluding('unsafe')) f = theano.function([x], a, mode=mode.excluding('unsafe'))
topo = f.maker.fgraph.toposort() topo = f.maker.fgraph.toposort()
a_op = [n for n in topo if isinstance(n.op, T.opt.Assert)] a_op = [n for n in topo if isinstance(n.op, T.opt.Assert)]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论