提交 5ce66fee authored 作者: ChienliMa's avatar ChienliMa

pep-8 style fix

上级 6c218ad8
......@@ -580,7 +580,7 @@ class Function(object):
"Type of original SharedVariable:", sv_ori.type)
maker = self.maker
# Copy Ins and their storage.
# so that they have different storage as their value
ins = [copy.copy(input) for input in maker.inputs]
......@@ -629,13 +629,13 @@ class Function(object):
# Swap SharedVairable in fgraph and ins
for index, (i, in_v) in enumerate(zip(ins, fg_cpy.inputs)):
# Variables in maker.ipnuts are defined by user, therefore we
# use them to make comparision and do the mapping.
# use them to make comparision and do the mapping.
# Otherwise we don't touch them.
swap_sv = maker.inputs[index].variable
if swap_sv in swap_svs_ori:
checkSV(i.variable, swap_sv)
# In the fgraph we use the cloned SharedVariable
swap_sv = swap_sv.clone()
......@@ -676,7 +676,7 @@ class Function(object):
for in_ori, in_cpy, ori, cpy in zip(maker.inputs, f_cpy.maker.inputs,
self.input_storage,
f_cpy.input_storage):
# Share immutable ShareVariable and constant input's storage
swapped = swap is not None and in_ori.variable in swap_svs_ori
......@@ -1387,7 +1387,6 @@ class FunctionMaker(object):
need_opt = False
updates = [spec.update for spec in inputs if spec.update]
additional_outputs = map(SymbolicOutput, updates)
pass
self.fgraph = fgraph
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论