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/12/09 10:18:27 UTC

[GitHub] [incubator-mxnet] haojin2 commented on issue #16653: [Bug][Numpy] The data type of power is not correct

haojin2 commented on issue #16653: [Bug][Numpy] The data type of power is not correct
URL: https://github.com/apache/incubator-mxnet/issues/16653#issuecomment-563162533
 
 
   The latest master branch today has this behavior:
   ```
   >>> import mxnet as mx
   >>> mx.npx.set_np()
   >>> a = mx.np.array(2, dtype=mx.np.int32)
   >>> b = a ** mx.np.array(3.1, dtype=mx.np.float32)
   >>> b
   array(8.574187)
   ```
   But still has a little bit problem with the scalar case:
   ```
   >>> import mxnet as mx
   >>> mx.npx.set_np()
   >>> a = mx.np.array(2, dtype=mx.np.int32)
   >>> b = a ** 3.1
   >>> print(b)
   8
   ```
   I think this is a new case for the binary scalar op, I'll work on a solution to this.

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