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/06 20:40:12 UTC

[GitHub] [incubator-mxnet] eric-haibin-lin opened a new issue #16111: Incompatible data type for numpy ops?

eric-haibin-lin opened a new issue #16111: Incompatible data type for numpy ops?
URL: https://github.com/apache/incubator-mxnet/issues/16111
 
 
   ```
   >>> mx.np.log(mx.np.array([1], dtype='int'))
   array([0], dtype=int64)
   
   >>> np.log(np.array([10]))
   array([2.30258509])
   ```
   
   Many math operators in numpy (such as `log`) do not return integer result. However, `mx.np` does. Is this expected? 

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