zheng-da commented on a change in pull request #11577: Fix flaky test 
test_gluon.test_hybrid_static_memory_switching
URL: https://github.com/apache/incubator-mxnet/pull/11577#discussion_r201094118
 
 

 ##########
 File path: tests/python/unittest/test_gluon.py
 ##########
 @@ -1187,17 +1187,19 @@ def check_hybrid_static_memory_switching(**kwargs):
 
     x = mx.nd.random.uniform(shape=(4, 3, 32, 32))
     net(x)
+    x.attach_grad()
 
 Review comment:
   without it, it seems the backward computation couldn't proceed.

----------------------------------------------------------------
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