starimpact opened a new issue #11639: ndarray can not store some big number, it 
is a bug???
URL: https://github.com/apache/incubator-mxnet/issues/11639
 
 
   code:
   ```python
     1 import sys
     2 sys.path.insert(0, '/home/mingzhang/work/dmlc/mxnet_v0.8.0.python')
     3
     4 import mxnet as mx
     5 import numpy as np
     6
     7 a = mx.nd.zeros((4, 1), dtype=np.int32)
     8 a[1,0] = int(16800001)
     9 a[2,0] = int(16800002)
    10 b = a.asnumpy()
    11 print b.T, b.dtype
    12 c = a-1
    13 b = c.asnumpy()
    14 print b.T, b.dtype
   ```
   output:
   ```python
   [[       0 16800000 16800002        0]] int32
   [[      -1 16799999 16800001       -1]] int32
   ```

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