zheng-da commented on a change in pull request #10687: Fix multi context hybrid
URL: https://github.com/apache/incubator-mxnet/pull/10687#discussion_r184245816
 
 

 ##########
 File path: tests/python/unittest/test_gluon.py
 ##########
 @@ -966,6 +968,12 @@ def test_save_load():
 
     net.load_params('test.params')
 
[email protected]("fails due to mkldnn issue. renable after mkldnn fixed")
+def test_hybrid_multi_context():
+    net = mx.gluon.model_zoo.vision.get_resnet(1, 18)
+    net.initialize(ctx=[mx.cpu(0), mx.cpu(1)])
+    net.hybridize()
+    net(mx.nd.zeros((1, 3, 32, 32), ctx=mx.cpu(0))).asnumpy()
 
 Review comment:
   I created a PR to fix this issue.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to