提交 45e6855f authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Remove debugprint line from test

上级 9f881382
...@@ -689,7 +689,6 @@ def test_crossentropycategorical1hot_lifter(): ...@@ -689,7 +689,6 @@ def test_crossentropycategorical1hot_lifter():
z = tensor.nnet.crossentropy_categorical_1hot(x, y) z = tensor.nnet.crossentropy_categorical_1hot(x, y)
gx = theano.grad(z.mean(), x) gx = theano.grad(z.mean(), x)
f = theano.function([x, y], [z, gx], mode=mode_with_gpu) f = theano.function([x, y], [z, gx], mode=mode_with_gpu)
theano.printing.debugprint(f, print_type=1)
assert not any(isinstance(n.op, (tensor.nnet.CrossentropyCategorical1Hot, assert not any(isinstance(n.op, (tensor.nnet.CrossentropyCategorical1Hot,
tensor.nnet.CrossentropyCategorical1HotGrad)) tensor.nnet.CrossentropyCategorical1HotGrad))
for n in f.maker.fgraph.apply_nodes) for n in f.maker.fgraph.apply_nodes)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论