提交 151eb6b3 authored 作者: carriepl's avatar carriepl

Flake8

上级 d676f50b
...@@ -1030,7 +1030,7 @@ class ScanInplaceOptimizer(Optimizer): ...@@ -1030,7 +1030,7 @@ class ScanInplaceOptimizer(Optimizer):
op = node.op op = node.op
info = copy.deepcopy(op.info) info = copy.deepcopy(op.info)
if not 'destroy_map' in info: if 'destroy_map' not in info:
info['destroy_map'] = OrderedDict() info['destroy_map'] = OrderedDict()
for out_idx in output_indices: for out_idx in output_indices:
...@@ -1064,11 +1064,10 @@ class ScanInplaceOptimizer(Optimizer): ...@@ -1064,11 +1064,10 @@ class ScanInplaceOptimizer(Optimizer):
remove=[node], remove=[node],
reason='scanOp_make_inplace') reason='scanOp_make_inplace')
return new_outs[0].owner return new_outs[0].owner
except InconsistencyError as e: except InconsistencyError:
# Failed moving output to be computed inplace # Failed moving output to be computed inplace
return node return node
def apply(self, fgraph): def apply(self, fgraph):
nodes = fgraph.toposort() nodes = fgraph.toposort()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论