ChaiBapchya edited a comment on issue #16174: How to build new operators?
URL: 
https://github.com/apache/incubator-mxnet/issues/16174#issuecomment-535241161
 
 
   @shdyn 
   I copy pasted the files into src/operator/. directory. Rebuilt it.
   Tried the following
   ```
   >>> import mxnet as mx
   >>> 
mx.nd.AmSoftmax(data=mx.nd.arange(0,12).reshape(3,4),weight=mx.nd.arange(0,4).reshape(1,4),label=mx.nd.array([0,0,1]),num_hidden=1)
   
   [[14.]
    [38.]
    [62.]]
   <NDArray 3x1 @cpu(0)>
   ```
   
   This didn't give me any error
   
   For more details about using the function, `help()` might be helpful
   ```
   >>> help(mx.nd.AmSoftmax)
   ```
   
   Let me know if it helps.

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