提交 fa33b17f authored 作者: Frederic's avatar Frederic

disable print in tests.

上级 77b676e3
...@@ -769,6 +769,7 @@ class T_CrossentropyCategorical1Hot(utt.InferShapeTester): ...@@ -769,6 +769,7 @@ class T_CrossentropyCategorical1Hot(utt.InferShapeTester):
theano.printing.debugprint(f) theano.printing.debugprint(f)
raise raise
g = theano.function([x, y], T.grad(expr, x), mode=mode) g = theano.function([x, y], T.grad(expr, x), mode=mode)
if verbose:
print_graph(g) print_graph(g)
try: try:
ops = [node.op for node in g.maker.fgraph.toposort()] ops = [node.op for node in g.maker.fgraph.toposort()]
...@@ -829,6 +830,7 @@ class T_CrossentropyCategorical1Hot(utt.InferShapeTester): ...@@ -829,6 +830,7 @@ class T_CrossentropyCategorical1Hot(utt.InferShapeTester):
finally: finally:
config.warn.sum_div_dimshuffle_bug = backup config.warn.sum_div_dimshuffle_bug = backup
if verbose:
print_graph(g) print_graph(g)
try: try:
ops = [node.op for node in g.maker.fgraph.toposort()] ops = [node.op for node in g.maker.fgraph.toposort()]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论