提交 75975a0c authored 作者: Frederic's avatar Frederic

Fix the remove of @_redefine and @_redefine_asRoutine

上级 d7f114ce
...@@ -3265,8 +3265,8 @@ alloc = Alloc() ...@@ -3265,8 +3265,8 @@ alloc = Alloc()
pprint.assign(alloc, printing.FunctionPrinter('alloc')) pprint.assign(alloc, printing.FunctionPrinter('alloc'))
def tensor_copy(a): """Create a duplicate of `a` (with duplicated storage)"""
"""Create a duplicate of `a` (with duplicated storage)""" tensor_copy = elemwise.Elemwise(scal.identity)
pprint.assign(tensor_copy, printing.IgnorePrinter()) pprint.assign(tensor_copy, printing.IgnorePrinter())
...@@ -5564,8 +5564,7 @@ class Join(Op): ...@@ -5564,8 +5564,7 @@ class Join(Op):
return [tuple(out_shapes)] return [tuple(out_shapes)]
def join(axis, *tensors): """
"""
Convenience function to concatenate `TensorType`s along the given axis. Convenience function to concatenate `TensorType`s along the given axis.
:Parameters: :Parameters:
...@@ -5588,6 +5587,7 @@ def join(axis, *tensors): ...@@ -5588,6 +5587,7 @@ def join(axis, *tensors):
be joined. be joined.
""" """
join = Join()
pprint.assign(lambda pstate, r: r.owner and isinstance(r.owner.op, Join), pprint.assign(lambda pstate, r: r.owner and isinstance(r.owner.op, Join),
printing.FunctionPrinter('join')) printing.FunctionPrinter('join'))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论