提交 4871d3c1 authored 作者: orhanf's avatar orhanf

remove unnecessary test

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