提交 eff0d6ac authored 作者: ChienliMa's avatar ChienliMa

add a varaible to avoid separating line

上级 1cf16a2a
...@@ -593,8 +593,8 @@ class Function(object): ...@@ -593,8 +593,8 @@ class Function(object):
# copy input storages if it's mutable # copy input storages if it's mutable
input_storage = [] input_storage = []
for in_ori, in_cpy in zip(maker.inputs, ins): for in_ori, in_cpy in zip(maker.inputs, ins):
if isinstance(in_ori.variable, theano.tensor.Constant) or \ is_const = isinstance(in_ori.variable, theano.tensor.Constant)
not in_ori.mutable: if is_const or not in_ori.mutable:
storage = getattr(in_ori, 'value', None) storage = getattr(in_ori, 'value', None)
in_cpy.value = in_ori.value in_cpy.value = in_ori.value
else: else:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论