提交 7d9b8e83 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Enables printing of an Env in debugprint

上级 7229a93e
......@@ -57,6 +57,9 @@ def debugprint(obj, depth=-1, print_type=False, file=None):
order = obj.maker.env.toposort()
elif isinstance(obj, (list, tuple)):
results_to_print.extend(obj)
elif isinstance(obj, gof.Env):
results_to_print.extend(obj.outputs)
order = obj.toposort()
else:
raise TypeError("debugprint cannot print an object of this type", obj)
for r in results_to_print:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论