eric-haibin-lin commented on a change in pull request #10374: Sparse support 
for Custom Op
URL: https://github.com/apache/incubator-mxnet/pull/10374#discussion_r178687532
 
 

 ##########
 File path: tests/python/unittest/test_operator.py
 ##########
 @@ -4059,6 +4059,79 @@ def create_operator(self, ctx, shapes, dtypes):
     with mx.contrib.autograd.train_section():
         y = mx.nd.Custom(x, aux, op_type='sqr')
         y.backward()
+    y.wait_to_read()
+    x.grad.wait_to_read()
+
 
 Review comment:
   Is the test case for sparse input not added here?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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