提交 af941a24 authored 作者: Ying Zhang's avatar Ying Zhang

remove irrelevant changes

上级 f7f19ba8
......@@ -2815,11 +2815,9 @@ alloc = Alloc()
pprint.assign(alloc, printing.FunctionPrinter('alloc'))
def tensor_copy(input):
"""Create a duplicate of a tensor `input` with duplicated storage."""
return elemwise.Elemwise(scal.identity)(input)
pprint.assign(elemwise.Elemwise(scal.identity), printing.IgnorePrinter())
"""Create a duplicate of `a` (with duplicated storage)"""
tensor_copy = elemwise.Elemwise(scal.identity)
pprint.assign(tensor_copy, printing.IgnorePrinter())
@constructor
......
......@@ -521,7 +521,7 @@ class _tensor_py_operators:
# COPYING
def copy(self, name=None):
"""Copy a variable and set a name to the copy."""
"""Copy a variable and optionally assign a name."""
copied_variable = theano.tensor.basic.tensor_copy(self)
copied_variable.name = name
return copied_variable
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论