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

add a varaible to avoid separating line

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