提交 956bab26 authored 作者: James Bergstra's avatar James Bergstra

Added max() and min() to tensor operators.

上级 a0a43388
...@@ -835,6 +835,14 @@ class _tensor_py_operators: ...@@ -835,6 +835,14 @@ class _tensor_py_operators:
"""See `theano.tensor.var`""" """See `theano.tensor.var`"""
return var(self, axis) return var(self, axis)
def min(self, axis=None):
"""See `theano.tensor.min`"""
return min(self, axis)
def max(self, axis=None):
"""See `theano.tensor.max`"""
return max(self, axis)
#TO TRUMP NUMPY OPERATORS #TO TRUMP NUMPY OPERATORS
__array_priority__ = 1000 __array_priority__ = 1000
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论