You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/07/01 08:46:15 UTC

[GitHub] [incubator-mxnet] tingying2020 commented on a change in pull request #15381: [Numpy] Add Documentations

tingying2020 commented on a change in pull request #15381: [Numpy] Add Documentations
URL: https://github.com/apache/incubator-mxnet/pull/15381#discussion_r298937039
 
 

 ##########
 File path: python/mxnet/numpy/multiarray.py
 ##########
 @@ -46,7 +46,122 @@
 __all__ = ['ndarray', 'empty', 'array', 'zeros', 'ones', 'maximum', 'minimum', 'stack', 'arange',
            'argmax', 'add', 'subtract', 'multiply', 'divide', 'mod', 'power', 'concatenate',
            'clip', 'split', 'swapaxes', 'expand_dims', 'tile', 'linspace', 'sin', 'cos',
-           'sinh', 'cosh', 'log10', 'sqrt']
+           'sinh', 'cosh', 'log10', 'sqrt', 'absolute', 'cbrt', 'arccos']
+
+@set_module('mxnet.numpy')
+def absolute(x, out=None, **kwargs):
+    """
+    Calculate the absolute value element-wise.
+    np.abs is a shorthand for this function.
+
+    Parameters
+    ----------	
+    x : ndarray
+    Input array.
+
+    out : ndarray, optional
+    A location into which the result is stored. If provided, it must have a shape 
+    that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. 
+    A tuple (possible only as a keyword argument) must have length equal to the number of outputs.
+
+    **kwargs
 
 Review comment:
   `**kwargs` should not appear here.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services