ckt624 commented on a change in pull request #15381: [Numpy] Add Documentations
URL: https://github.com/apache/incubator-mxnet/pull/15381#discussion_r298945760
##########
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:
Fixed. Thx.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services