Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
sanity
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiyan66 committed Mar 25, 2020
1 parent bae3dc0 commit a066a85
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions python/mxnet/ndarray/numpy/_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -6971,9 +6971,7 @@ def median(a, axis=None, out=None, overwrite_input=None, keepdims=False):
>>> np.median(a, axis=1)
array([7., 2.])
"""
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,
return quantile(a=a, q=0.5, axis=axis, out=out, overwrite_input=overwrite_input,
interpolation='midpoint', keepdims=keepdims)


Expand Down
2 changes: 1 addition & 1 deletion python/mxnet/numpy/multiarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -9027,7 +9027,7 @@ def median(a, axis=None, out=None, overwrite_input=None, keepdims=False):
array([7., 2.])
"""
return _mx_nd_np.median(a, axis=axis, overwrite_input=overwrite_input,
keepdims=keepdims, out=out)
keepdims=keepdims, out=out)


@set_module('mxnet.numpy')
Expand Down
1 change: 0 additions & 1 deletion tests/python/unittest/test_numpy_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -7416,7 +7416,6 @@ def hybrid_forward(self, F, a):
assert_almost_equal(mx_out.asnumpy(), np_out, atol=atol, rtol=rtol)



@with_seed()
@use_np
def test_np_quantile():
Expand Down

0 comments on commit a066a85

Please sign in to comment.