提交 268207b4 authored 作者: Shawn Tan's avatar Shawn Tan

Force FAST_RUN to optimise shape inference op.

上级 8a64840a
......@@ -7598,7 +7598,7 @@ def test_alloc_diag():
assert np.all(rediag == test_val)
# Test infer_shape
f_shape = theano.function([x], adiag_op(x).shape)
f_shape = theano.function([x], adiag_op(x).shape, mode='FAST_RUN')
theano.printing.debugprint(f_shape.maker.fgraph.outputs[0])
output_shape = f_shape(test_val)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论