a550461053 commented on issue #17486: Update CustomOp doc with changes for GPU 
support
URL: https://github.com/apache/incubator-mxnet/pull/17486#issuecomment-585356310
 
 
   > > Hi, @rondogency I am trying to use the dynamic operator and have some 
questions.
   > > How can we use `mxnet::NDArray` or `mshadow_op` used in xxx-inl.h of 
mxnet-backend operator? And I want to know how to use the `mutateInputs` 
function like in BatchNorm-like operators.
   > > Thank you very much.
   > 
   > Hi @a550461053, MXNet custom operators have been designed not to integrate 
with any MXNet backend classes (mxnet::NDArray) to simplify building. We've 
designed MXTensor to be equivalent. Is there some other functionality you were 
wanting from NDArray thats not in MXTensor?
   > 
   > The mutateInputs API allows you to do the same as the backend APIs, so you 
can specify the index of the input that you want to be mutable to make a 
BatchNorm-like operator.
   
   Ok, thank you. I want to create a custom operator calling another operator 
which input NDArray. Both operator is async pushed to engine, I think this way 
is possible. Also, I am not clear on using mutateInputs API, how and when to 
use it? If you can provide a example of the mutateInputs API, I will be 
grateful to 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