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/09/25 22:05:42 UTC

[GitHub] [incubator-mxnet] ChaiBapchya edited a comment on issue #16174: How to build new operators?

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


With regards,
Apache Git Services