提交 ffd31201 authored 作者: Iulian Vlad Serban's avatar Iulian Vlad Serban

Fixed more Flake8 errors by removing debugging code.

上级 17fec661
...@@ -3010,15 +3010,9 @@ def check_stack_trace(f_or_fgraph, ops_to_check='last', bug_print='raise'): ...@@ -3010,15 +3010,9 @@ def check_stack_trace(f_or_fgraph, ops_to_check='last', bug_print='raise'):
else: else:
raise ValueError('The string bug_print is not recognised') raise ValueError('The string bug_print is not recognised')
print("apply_nodes_to_check")
print(apply_nodes_to_check)
for node in apply_nodes_to_check: for node in apply_nodes_to_check:
for output in node.outputs: for output in node.outputs:
print('Checking node')
print (node)
if (not hasattr(output.tag, 'trace') or not output.tag.trace): if (not hasattr(output.tag, 'trace') or not output.tag.trace):
print ('Failed on node')
print (node)
return False return False
return True return True
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论