wkcn commented on a change in pull request #14363: Support multi-threading for Custom Operator URL: https://github.com/apache/incubator-mxnet/pull/14363#discussion_r263669472
########## File path: src/operator/custom/custom-inl.h ########## @@ -129,6 +129,9 @@ class CustomOperator { ctx.run_ctx.ctx, vars, vars2, FnProperty::kNormal, 0, "CustomOperator"); }); + // increase num_threads if there is not enough threads to execute custom operator + if (q_.size() > num_free_threads) Review comment: MXNET_CUSTOM_OP_NUM_THREADS is the upbound number of threads. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services