haojin2 commented on a change in pull request #15277: [Numpy] Numpy argsort
URL: https://github.com/apache/incubator-mxnet/pull/15277#discussion_r296152154
 
 

 ##########
 File path: tests/python/unittest/test_numpy_op.py
 ##########
 @@ -775,6 +775,47 @@ def hybrid_forward(self, F, x):
                     mx_ret = net(a)
                     assert same(mx_ret.asnumpy(), np_ret)
 
+@with_seed()
[email protected]_np_shape
+def test_np_argsort():
+    @npx.use_np_shape
+    class TestArgsort(HybridBlock):
+        def __init__(self, axis=-1):
+            super(TestArgsort, self).__init__()
+            self._axis = axis
+
+        def hybrid_forward(self, F, a):
+            return F.np.argsort(a, self._axis)
+    
+    shapes = [
 
 Review comment:
   ```python
   shapes = [
       # shapes 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

Reply via email to