提交 26766ae6 authored 作者: Frederic Bastien's avatar Frederic Bastien
...@@ -397,7 +397,7 @@ class Method(Component): ...@@ -397,7 +397,7 @@ class Method(Component):
if input not in _inputs: if input not in _inputs:
# Add this input to the inputs; we require that storage already exists for them, # Add this input to the inputs; we require that storage already exists for them,
# but otherwise they are immutable. # but otherwise they are immutable.
if isinstance(input, gof.Value): if isinstance(input, gof.Value): # and not isinstance(input, gof.Constant):
storage = get_storage(input) storage = get_storage(input)
storage.value = input.data storage.value = input.data
else: else:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论