提交 5c9f26b8 authored 作者: Frederic Bastien's avatar Frederic Bastien 提交者: Caglar

flake8

上级 5c80ccc7
......@@ -3204,7 +3204,6 @@ def local_incsubtensor_of_zeros(node):
not node.op.set_instead_of_inc):
x = node.inputs[0]
y = node.inputs[1]
replace = False
try:
# Don't use only_process_constants=True. We need to
# investigate Alloc of 0s but with non constant shape.
......@@ -3212,7 +3211,7 @@ def local_incsubtensor_of_zeros(node):
# No need to copy over the stacktrace,
# because x should already have a stacktrace
return [x]
except NotScalarConstantError, e:
except NotScalarConstantError:
return
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论