提交 24d757b2 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

gave compile.io.In a shared flag to track which inputs are shared

上级 10598b3b
......@@ -194,7 +194,12 @@ class In(SymbolicInput):
# try to keep it synchronized.
def __init__(self, variable, name=None, value=None, update=None,
mutable=None, strict=False, allow_downcast=None, autoname=True,
implicit=None, borrow=None):
implicit=None, borrow=None, shared = False):
#if shared, an input's value comes from its persistent storage, not from a default stored
#in the function or from the caller
self.shared = shared
# mutable implies the output can be both aliased to the input and that the input can be
# destroyed. borrow simply implies the output can be aliased to the input. Thus
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论