-
Notifications
You must be signed in to change notification settings - Fork 6.8k
mx.nd.Custom not working in subprocess #14396
Comments
Hey, this is the MXNet Label Bot. |
I found that the custom operator has been |
I rekon there's a limitation of custom op with requires a global lock when executing the python custom op, and it might cause dead lock when combined with subprocess. @eric-haibin-lin raising for expertise in engine part. |
Yes this is because of the dead lock in the subprocess. One way to fix this is to create a start and stop functions in CustomOperator, which should be called from pthread_atfork prepare and child handlers. |
After #14363, the threads is created when running custom operator, so custom operator needs also to be executed in main process to reproduce the bug:
|
mx.nd.Custom gets stuck at subprocess.
The following code to replicate the error is from wkcn/MobulaOP#40 (comment)
asnumpy
gets stuck due tomx.nd.Custom
The text was updated successfully, but these errors were encountered: