Unverified 提交 614619f9 authored 作者: abergeron's avatar abergeron 提交者: GitHub

Merge pull request #6632 from abergeron/fix_print_int

Print numbers to the right destination
...@@ -163,7 +163,7 @@ def debugprint(obj, depth=-1, print_type=False, ...@@ -163,7 +163,7 @@ def debugprint(obj, depth=-1, print_type=False,
topo = obj.toposort() topo = obj.toposort()
order.extend([topo for item in obj.outputs]) order.extend([topo for item in obj.outputs])
elif isinstance(obj, (integer_types, float, np.ndarray)): elif isinstance(obj, (integer_types, float, np.ndarray)):
print(obj) print(obj, file=_file)
elif isinstance(obj, (theano.In, theano.Out)): elif isinstance(obj, (theano.In, theano.Out)):
results_to_print.append(obj.variable) results_to_print.append(obj.variable)
profile_list.append(None) profile_list.append(None)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论