haojin2 commented on a change in pull request #15819: [Numpy]flip
URL: https://github.com/apache/incubator-mxnet/pull/15819#discussion_r323629194
 
 

 ##########
 File path: tests/python/unittest/test_numpy_op.py
 ##########
 @@ -1744,6 +1744,66 @@ def test_indexing_mode(sampler, set_size, samples_size, 
replace, weight=None):
             test_indexing_mode(test_choice_weighted, num_classes, num_classes 
// 2, replace, weight)
 
 
+@with_seed()
+@use_np
+def test_np_flip():
+    class TestFlip(HybridBlock):
+        def __init__(self, axis):
+            super(TestFlip, self).__init__()
+            self.axis = axis
+
+        def hybrid_forward(self, F, x):
+            return F.np.flip(x, self.axis)
+
+    shapes1 = [(1, 2, 3), (1, 0), (3, 0, 2), (), (1,)]
 
 Review comment:
   ```Python
   shapes = [(1, 2, 3), (1, 0), ()]
   ```

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to