提交 bc7478d6 authored 作者: Matthew Rocklin's avatar Matthew Rocklin

Fixed docstring to clone function.

Include inputs in return description
上级 c1ee7dd5
...@@ -559,7 +559,8 @@ def orphans(i, o): ...@@ -559,7 +559,8 @@ def orphans(i, o):
def clone(i, o, copy_inputs = True): def clone(i, o, copy_inputs = True):
""" WRITEME """
Copies the subgraph contained between i and o.
:type i: list :type i: list
:param i: input L{Variable}s :param i: input L{Variable}s
...@@ -568,8 +569,7 @@ def clone(i, o, copy_inputs = True): ...@@ -568,8 +569,7 @@ def clone(i, o, copy_inputs = True):
:type copy_inputs: bool :type copy_inputs: bool
:param copy_inputs: if True, the inputs will be copied (defaults to False) :param copy_inputs: if True, the inputs will be copied (defaults to False)
Copies the subgraph contained between i and o and returns the Returns the inputs and outputs of that copy.
outputs of that copy (corresponding to o).
""" """
equiv = clone_get_equiv(i, o, copy_inputs) equiv = clone_get_equiv(i, o, copy_inputs)
return [equiv[input] for input in i], [equiv[output] for output in o] return [equiv[input] for input in i], [equiv[output] for output in o]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论