提交 cd118af7 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Specify arguments of TensorVariable.sum

It's easier to understand the doc if we have explicit kw args.
上级 6a7aa408
......@@ -1418,8 +1418,9 @@ class _tensor_py_operators:
def __rdot__(right, left):
return dot(left, right)
def sum(self, *args, **kw):
return sum(self, *args, **kw)
def sum(self, axis=None, dtype=None):
"""See `theano.tensor.sum`"""
return sum(self, axis=axis, dtype=dtype)
def norm(self, L, axis=None):
if L==0:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论