提交 f5cd48f5 authored 作者: Brandon T. Willard's avatar Brandon T. Willard

Remove support for deprecated theano.scan.utils.clone copy_inputs argument

上级 d0f80b0b
......@@ -173,12 +173,7 @@ def hash_listsDictsTuples(x):
return hash_value
DEPRECATED_ARG = object()
def clone(
output, replace=None, strict=True, share_inputs=True, copy_inputs=DEPRECATED_ARG
):
def clone(output, replace=None, strict=True, share_inputs=True):
"""
Function that allows replacing subgraphs of a computational graph.
......@@ -196,18 +191,8 @@ def clone(
graph. If False, clone them. Note that cloned shared variables still
use the same underlying storage, so they will always have the same
value.
copy_inputs
Deprecated, use share_inputs.
"""
if copy_inputs is not DEPRECATED_ARG:
warnings.warn(
"In `clone()` function, the argument `copy_inputs` has been deprecated and renamed into `share_inputs`",
category=DeprecationWarning,
)
assert share_inputs # since we used `copy_inputs` we should have default value for `share_inputs`
share_inputs = copy_inputs
if isinstance(replace, dict):
items = list(replace.items())
elif isinstance(replace, (list, tuple)):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论