This is an automated email from the ASF dual-hosted git repository. jxie pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push: new 583722d Remove python function negative for rendering ndarray api in doc (#7657) 583722d is described below commit 583722dc1a8d5d442c6202e4ddaae27fcd47e58a Author: reminisce <wujun....@gmail.com> AuthorDate: Tue Aug 29 22:11:35 2017 -0700 Remove python function negative for rendering ndarray api in doc (#7657) --- python/mxnet/ndarray/ndarray.py | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/python/mxnet/ndarray/ndarray.py b/python/mxnet/ndarray/ndarray.py index b0500d3..e497ea6 100644 --- a/python/mxnet/ndarray/ndarray.py +++ b/python/mxnet/ndarray/ndarray.py @@ -43,8 +43,8 @@ from .op import NDArrayBase __all__ = ["NDArray", "concatenate", "_DTYPE_NP_TO_MX", "_DTYPE_MX_TO_NP", "_GRAD_REQ_MAP", "ones", "add", "arange", "divide", "equal", "full", "greater", "greater_equal", "imdecode", "lesser", "lesser_equal", "maximum", "minimum", "moveaxis", "modulo", - "multiply", "negative", "not_equal", "onehot_encode", "power", "subtract", - "true_divide", "waitall", "_new_empty_handle"] + "multiply", "not_equal", "onehot_encode", "power", "subtract", "true_divide", + "waitall", "_new_empty_handle"] _STORAGE_TYPE_UNDEFINED = -1 _STORAGE_TYPE_DEFAULT = 0 @@ -2572,31 +2572,6 @@ def true_divide(lhs, rhs): return divide(lhs, rhs) -def negative(arr): - """Numerical negative, element-wise. - - Equals ``-arr`` - - Parameters - ---------- - arr : NDArray - The input array - - Returns - ------- - NDArray - ``-arr`` - - Examples - -------- - >>> x = mx.nd.ones((2,3)) - >>> (-x).asnumpy() - array([[-1., -1., -1.], - [-1., -1., -1.]], dtype=float32) - """ - return multiply(arr, -1.0) - - def concatenate(arrays, axis=0, always_copy=True): """DEPRECATED, use ``concat`` instead -- To stop receiving notification emails like this one, please contact ['"comm...@mxnet.apache.org" <comm...@mxnet.apache.org>'].