提交 d7f114ce authored 作者: Frederic's avatar Frederic

Remove old code that was for epydoc.

上级 08af70f8
...@@ -1531,28 +1531,6 @@ elemwise.TensorConstant = TensorConstant ...@@ -1531,28 +1531,6 @@ elemwise.TensorConstant = TensorConstant
######################### #########################
def _redefine(real_symbol_value, module='tensor'):
"""Replace the value associated with a function symbol.
This is useful to trick epydoc into doing what we want. It's a hack.
"""
real_symbol_value.__module__ = 'tensor.basic'
def decorator(f):
return real_symbol_value
return decorator
def _redefine_asRoutine(real_symbol_value):
real_symbol_value.__epydoc_asRoutine = True
def decorator(f):
return real_symbol_value
return decorator
def _scal_elemwise_with_nfunc(nfunc, nin, nout): def _scal_elemwise_with_nfunc(nfunc, nin, nout):
""" """
Replace a symbol definition with an elementwise version of the Replace a symbol definition with an elementwise version of the
...@@ -3287,7 +3265,6 @@ alloc = Alloc() ...@@ -3287,7 +3265,6 @@ alloc = Alloc()
pprint.assign(alloc, printing.FunctionPrinter('alloc')) pprint.assign(alloc, printing.FunctionPrinter('alloc'))
@_redefine(elemwise.Elemwise(scal.identity))
def tensor_copy(a): def tensor_copy(a):
"""Create a duplicate of `a` (with duplicated storage)""" """Create a duplicate of `a` (with duplicated storage)"""
pprint.assign(tensor_copy, printing.IgnorePrinter()) pprint.assign(tensor_copy, printing.IgnorePrinter())
...@@ -5587,7 +5564,6 @@ class Join(Op): ...@@ -5587,7 +5564,6 @@ class Join(Op):
return [tuple(out_shapes)] return [tuple(out_shapes)]
@_redefine_asRoutine(Join())
def join(axis, *tensors): def join(axis, *tensors):
""" """
Convenience function to concatenate `TensorType`s along the given axis. Convenience function to concatenate `TensorType`s along the given axis.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论