提交 1a4fec6e authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

De-indent the loop.

上级 ec1fc9de
...@@ -847,13 +847,13 @@ class Function(object): ...@@ -847,13 +847,13 @@ class Function(object):
if not is_aliased: if not is_aliased:
args_share_memory.append([i]) args_share_memory.append([i])
# Check for groups of more than one argument that share memory # Check for groups of more than one argument that share memory
for group in args_share_memory: for group in args_share_memory:
if len(group) > 1: if len(group) > 1:
# copy all but the first # copy all but the first
for j in group[1:]: for j in group[1:]:
self.input_storage[j].storage[0] = copy.copy( self.input_storage[j].storage[0] = copy.copy(
self.input_storage[j].storage[0]) self.input_storage[j].storage[0])
# Check if inputs are missing, or if inputs were set more than once, or # Check if inputs are missing, or if inputs were set more than once, or
# if we tried to provide inputs that are supposed to be implicit. # if we tried to provide inputs that are supposed to be implicit.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论