提交 d05583f3 authored 作者: Yurii Shevchuk's avatar Yurii Shevchuk

Fix pydotprint issue for Python 3

上级 f979d9e5
...@@ -865,8 +865,8 @@ def pydotprint(fct, outfile=None, ...@@ -865,8 +865,8 @@ def pydotprint(fct, outfile=None,
# it, we must copy it. # it, we must copy it.
outputs = list(outputs) outputs = list(outputs)
if isinstance(fct, Function): if isinstance(fct, Function):
for i, fg_ii in reversed(zip(fct.maker.expanded_inputs, function_inputs = zip(fct.maker.expanded_inputs, fct.maker.fgraph.inputs)
fct.maker.fgraph.inputs)): for i, fg_ii in reversed(list(function_inputs)):
if i.update is not None: if i.update is not None:
k = outputs.pop() k = outputs.pop()
# Use the fgaph.inputs as it isn't the same as maker.inputs # Use the fgaph.inputs as it isn't the same as maker.inputs
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论