ChaiBapchya opened a new issue #14231: Numpy vs NDArray inconsistent values
URL: https://github.com/apache/incubator-mxnet/issues/14231
 
 
   Numpy value of 2^29
   ```
   np.array(2**29)
   array(536870912)
   ```
   All the below values for **MXNet**
   
   MXNet NDArray Initialized as constant scalar
   ```
   >>> mx.nd.array(2**29)
   536870900.0
   <NDArray  @cpu(0)>
   ```
   ```
   >>> mx.nd.array(np.array(2**29))
   536870900.0
   <NDArray  @cpu(0)>
   ```
   Even here, there are inconsistencies
   MXNet NDArray initialized as array/list
   ```
   >>> mx.nd.array([2**29])
   [5.368709e+08]
   <NDArray 1 @cpu(0)>
   ```
   ```
   >>> mx.nd.array([np.array(2**29)])
   [5.368709e+08]
   <NDArray 1 @cpu(0)>
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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