zoeygxy commented on a change in pull request #15381: [Numpy] Add Documentations
URL: https://github.com/apache/incubator-mxnet/pull/15381#discussion_r298884508
##########
File path: python/mxnet/ndarray/numpy/_op.py
##########
@@ -28,8 +28,120 @@
__all__ = ['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']
+ 'sin', 'cos', 'sinh', 'cosh', 'log10', 'sqrt', 'absolute', 'cbrt',
+ 'arccos']
+@set_module('mxnet.ndarray.numpy')
+def absolute(x, out=None, **kwargs):
+ r"""
+ Calculate the absolute value element-wise.
+ np.abs is a shorthand for this function.
+
+ Parameters
+ ----------
+ x : array_like
Review comment:
Should be ndarray. Please review and fix other places too.
----------------------------------------------------------------
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