wkcn opened a new issue #14610: [Feature Request] Disable lazy evaluation
URL: https://github.com/apache/incubator-mxnet/issues/14610
 
 
   Hi! there.
   
   Consider this case:
   It takes T1 seconds to execute an operator `mx.nd.some_op`.
   
   I have the code:
   ```python
   a = mx.nd.some_op(xxxx)
   time.sleep(T2)
   print(a.asnumpy())
   ```
   Because of lazy evaluation, the excution time is (T1 + T2) seconds.
   Using `wait_to_read` is unuseful  to address the issue, since `wait_to_read` 
will block until the computation finishes.
   
   Is there any solution to disable lazy evaluation, and execute the operator 
immediatly? Thank you!

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