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/28 07:16:17 UTC

[GitHub] [incubator-mxnet] sxjscience opened a new issue #16653: [Bug][Numpy] The data type of power is not correct

sxjscience opened a new issue #16653: [Bug][Numpy] The data type of power is not correct
URL: https://github.com/apache/incubator-mxnet/issues/16653
 
 
   ```python
   import mxnet as mx
   mx.npx.set_np()
   a = mx.np.array(2, dtype=mx.np.int32)
   b = a ** 3.1
   print(b)
   ```
   Returns
   ```
   8
   ```
   
   In the numpy the result should be:
   ```
   import numpy as np
   print(np.array(2) ** 3.1)
   ```
   Returns
   ```
   8.574187700290345
   ```

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