anirudh2290 commented on issue #14575: fix custom exception handling
URL: https://github.com/apache/incubator-mxnet/pull/14575#issuecomment-482766586
 
 
   @arcadiaphy Yes good point, the code you linked will cause a deadlock. this 
is also true if custom op forward or backward has asnumpy() or wait_to_read at 
the end even before applying your change, when you change 
MXNET_CUSTOM_OP_NUM_THREADS=1. Even before the custom op multi threaded change 
this was the case. 
   
   Also, I am concerned about the performance because of the blocking call 
during op execution. I think we have reached a point where there is no option 
but to special case "CustomOperator" in ExecuteOprBlock by checking whether op 
is CustomOperator and if so, execute the operator instead of skipping 
(https://github.com/apache/incubator-mxnet/blob/master/src/engine/threaded_engine.h#L377)
 . I was trying to avoid this to keep the engine agnostic of the op its 
executing but this seems like the least impactful solution currently. 
   

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