You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/10/16 23:54:27 UTC

[GitHub] [incubator-mxnet] wkcn commented on issue #15921: dynamic custom operator support

wkcn commented on issue #15921: dynamic custom operator support
URL: https://github.com/apache/incubator-mxnet/pull/15921#issuecomment-542937840
 
 
   Hi @szha, this PR provides an approach to create ABI-compatibility custom operator.
   
   There is some limitation in the existing interface ‘MXCustomOpRegister’, which creates custom operator as a task of mx.nd.Custom (https://github.com/apache/incubator-mxnet/blob/master/src/operator/custom/custom-inl.h#L216). It drops the performance, because of the thread lock and restricted workers. Additionally, ‘ MXCustomOpRegister’ does not provide the CUDA stream.
   
   This PR will register custom Op, which is a NNVM op, rather than a task of a NNVM op(mx.nd.Custom).  It does not drop the performance, and it is available to handle all resources, like CUDA stream, memory allocation. 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services