leezu edited a comment on issue #18090:
URL: 
https://github.com/apache/incubator-mxnet/issues/18090#issuecomment-617397908


   @RuRo, @reminisce helped point out an error in your reproducer script. You 
use zero-shape tensor, but didn't enable numpy shape semantics. It should be
   
   ```
   import mxnet as mx
   
   mx.npx.set_np()
   
   with mx.Context(mx.gpu()):
       while True:
           for _ in range(100):
               mx_data = mx.np.array(0)
               mx_x = mx.np.empty_like(mx_data)
   
           mx.nd.waitall()
           print(end='.', flush=True)
   ```
   
   This explains the error in 
https://github.com/apache/incubator-mxnet/issues/18090#issuecomment-616025939
   
   You're right, it shouldn't cause a deadlock.


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


Reply via email to