提交 fa8753c8 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Fix test: inplace_log1p is in the graph, not log1p

上级 52845167
......@@ -914,15 +914,15 @@ def test_log1p():
# the first three ops are Shape_i, Shape_i, and Dimshuffle
theano.printing.debugprint(f)
assert [node.op for node in f.maker.env.toposort()][3:] \
== [T.log1p, alloc]
== [inplace.log1p_inplace, alloc]
f = function([x,y], T.log(0+(x) + fill(y,1.0)), mode=m)
theano.printing.debugprint(f)
assert [node.op for node in f.maker.env.toposort()][3:] \
== [T.log1p, alloc]
== [inplace.log1p_inplace, alloc]
f = function([x,y], T.log(2+(x) - fill(y,1.0)), mode=m)
theano.printing.debugprint(f)
assert [node.op for node in f.maker.env.toposort()][3:] \
== [T.log1p, alloc]
== [inplace.log1p_inplace, alloc]
f([1e-7, 10], [[0, 0], [0, 0]]) #debugmode will verify values
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论