提交 1328ebb3 authored 作者: Frederic Bastien's avatar Frederic Bastien

flake8

上级 67e14ae0
...@@ -252,7 +252,7 @@ def inplace_elemwise_optimizer_op(OP): ...@@ -252,7 +252,7 @@ def inplace_elemwise_optimizer_op(OP):
if (check_each_change != 1 and if (check_each_change != 1 and
# If multiple outputs, they must all have the same size, # If multiple outputs, they must all have the same size,
# so only check the first. # so only check the first.
getattr(node.outputs[0].type, 'ndim', -1) == 0): getattr(node.outputs[0].type, 'ndim', -1) == 0):
continue continue
if op.inplace_pattern: if op.inplace_pattern:
...@@ -281,7 +281,6 @@ def inplace_elemwise_optimizer_op(OP): ...@@ -281,7 +281,6 @@ def inplace_elemwise_optimizer_op(OP):
not fgraph.destroyers(node.inputs[i]) and not fgraph.destroyers(node.inputs[i]) and
node.inputs[i] not in protected_inputs] node.inputs[i] not in protected_inputs]
verbose = False verbose = False
raised_warning = not verbose raised_warning = not verbose
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论