提交 0f9d5959 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Clarify what happen to cloned shared variables

上级 531fcbb9
...@@ -154,7 +154,9 @@ def clone(output, ...@@ -154,7 +154,9 @@ def clone(output,
:type copy_inputs: bool :type copy_inputs: bool
:param copy_inputs: If True, use the same inputs (and shared variables) :param copy_inputs: If True, use the same inputs (and shared variables)
as the original graph. If False, clone them. as the original graph. If False, clone them. Note that cloned
shared variables still use the same underlying storage, so they
will always have the same value.
""" """
inps, outs, other_stuff = rebuild_collect_shared(output, inps, outs, other_stuff = rebuild_collect_shared(output,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论