wkcn commented on issue #14610: [Feature Request] Disable lazy evaluation
URL: 
https://github.com/apache/incubator-mxnet/issues/14610#issuecomment-480110594
 
 
   Test Code:
   ```
   import mxnet as mx
   import time
   
   N = 4000
   a = mx.nd.zeros((N, N))
   b = mx.nd.zeros((N, N))
   while 1:
       tic = time.time()
       c = mx.nd.dot(a, b)
       time.sleep(5)
       tic2 = time.time()
       c.wait_to_read()
       print("wait_to_read", time.time() - tic2)
       print(time.time() - tic)
   ```
   
   Engine|calling `time.sleep(5)`|wait_to_read time|total time|
   ----------|----|----|----
   ThreadedEnginePerDevice|Yes|4e-5|5.01
   ThreadedEnginePerDevice|No|0.705|0.708
   NaiveEngine|Yes|4e-5|5.7
   NaiveEngine|No|5.96e-6|0.68

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


With regards,
Apache Git Services

Reply via email to