zoeygxy commented on a change in pull request #15388: Doc
URL: https://github.com/apache/incubator-mxnet/pull/15388#discussion_r298461030
##########
File path: python/mxnet/_numpy_op_doc.py
##########
@@ -176,3 +176,116 @@ def _np_cumsum(a, axis=None, dtype=None, out=None):
`axis` is not None or `a` is a 1-d array.
"""
pass
+
+def _np_prod(a, axis=None, dtype=None, out=None, keepdims=None):
+ r"""
+ prod(a, axis=None, dtype=None, out=None, keepdims=_Null)
+
+ Return the product of array elements over a given axis.
+
+ Parameters
+ ----------
+ a : ndarray
+ Input data.
+ axis : None or int or tuple of ints, optional
+ Axis or axes along which a product is performed. The default,
+ axis=None, will calculate the product of all the elements in the
+ input array. If axis is negative it counts from the last to the
+ first axis.
+
+ If axis is a tuple of ints, a product is performed on all of the
+ axes specified in the tuple instead of a single axis or all the
+ axes as before.
+ dtype : dtype, optional
+ The type of the returned array, as well as of the accumulator in
+ which the elements are multiplied. Default is numpy.float32.
+ out : ndarray, optional
Review comment:
Also please change the order of the arguments 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:
[email protected]
With regards,
Apache Git Services