haojin2 commented on a change in pull request #17084: [numpy] add op median
URL: https://github.com/apache/incubator-mxnet/pull/17084#discussion_r358090445
##########
File path: python/mxnet/symbol/numpy/_symbol.py
##########
@@ -3429,6 +3429,59 @@ def get_list(arrays):
return _npi.stack(*arrays, axis=axis, out=out)
+@set_module('mxnet.symbol.numpy')
+def median(a, axis=None, out=None, keepdims=False):
+ r"""
+ Compute the median along the specified axis.
+
+ Returns the median of the array elements.
+
+ Parameters
+ ----------
+ a : array_like
Review comment:
For symbolic version, input should be `_Symbol`
----------------------------------------------------------------
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