diff --git a/python/mxnet/ndarray/numpy/_op.py b/python/mxnet/ndarray/numpy/_op.py index d53dc9eaff6a..99e55fe01b6c 100644 --- a/python/mxnet/ndarray/numpy/_op.py +++ b/python/mxnet/ndarray/numpy/_op.py @@ -6690,7 +6690,7 @@ def median(a, axis=None, out=None, overwrite_input=None, keepdims=False): from mxnet import np, npx npx.set_np() return quantile(a=a, q=np.array(0.5), axis=axis, out=out, overwrite_input=overwrite_input, - interpolation='linear', keepdims=keepdims) + interpolation='midpoint', keepdims=keepdims) @set_module('mxnet.ndarray.numpy') diff --git a/python/mxnet/symbol/numpy/_symbol.py b/python/mxnet/symbol/numpy/_symbol.py index 3ae320c4d7d5..c05e17932fff 100644 --- a/python/mxnet/symbol/numpy/_symbol.py +++ b/python/mxnet/symbol/numpy/_symbol.py @@ -5996,7 +5996,7 @@ def median(a, axis=None, out=None, overwrite_input=None, keepdims=False): mean, percentile """ return quantile(a=a, q=0.5, axis=axis, out=out, overwrite_input=overwrite_input, - interpolation='linear', keepdims=keepdims) + interpolation='midpoint', keepdims=keepdims) @set_module('mxnet.symbol.numpy')