提交 8a6c3992 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Print numbers to the right destination

上级 727477b5
...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论