haojin2 commented on a change in pull request #15385: added doc for numpy
operators
URL: https://github.com/apache/incubator-mxnet/pull/15385#discussion_r298424927
##########
File path: python/mxnet/_numpy_op_doc.py
##########
@@ -176,3 +176,229 @@ def _np_cumsum(a, axis=None, dtype=None, out=None):
`axis` is not None or `a` is a 1-d array.
"""
pass
+
+
+def _np_amax(a, axis=None, out=None):
+ r"""
+ amax(a, axis=None, out=None, keepdims=_Null, initial=_Null)
+
+ Return the maximum of an array or maximum along an axis.
+
+ Parameters
+ ----------
+ a : ndarray
+ Input data.
+ Python native iterables not supported.
+
+ axis : None or int or tuple of ints, optional
+ Axis or axes along which to operate. By default, flattened input is
+ used.
+
+ Negative indices not supported.
+
+ out : ndarray, optional
+ Alternative output array in which to place the result. Must
+ be of the same shape and buffer length as the expected output.
+ See `doc.ufuncs` (Section "Output arguments") for more details.
+
+ keepdims : bool, optional
+ If this is set to True, the axes which are reduced are left
+ in the result as dimensions with size one. With this option,
+ the result will broadcast correctly against the input array.
+
+ If the default value is passed, then `keepdims` will not be
+ passed through to the `amax` method of sub-classes of
+ `ndarray`, however any non-default value will be. If the
+ sub-class' method does not implement `keepdims` any
+ exceptions will be raised.
+
+ initial : scalar, optional
+ The minimum value of an output element. Must be present to allow
+ computation on empty slice.
+
+ Not supported yet.
Review comment:
Actually there's one input supported, you can pass `None` and this operator
will still function.
----------------------------------------------------------------
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