mxnet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [incubator-mxnet] drmasud opened a new issue #16960: large numpy array to mxnet ndarray conversion
Date Mon, 02 Dec 2019 19:58:03 GMT
drmasud opened a new issue #16960: large numpy array to mxnet ndarray conversion
   ## Description
   Conversion fails on large matrices.
   ### Error Message
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "/home/ec2-user/.local/lib/python3.6/site-packages/mxnet/ndarray/", line
146, in array
       return _array(source_array, ctx=ctx, dtype=dtype)
     File "/home/ec2-user/.local/lib/python3.6/site-packages/mxnet/ndarray/", line
2505, in array
       arr[:] = source_array
     File "/home/ec2-user/.local/lib/python3.6/site-packages/mxnet/ndarray/", line
449, in __setitem__
       self._set_nd_basic_indexing(key, value)
     File "/home/ec2-user/.local/lib/python3.6/site-packages/mxnet/ndarray/", line
715, in _set_nd_basic_indexing
     File "/home/ec2-user/.local/lib/python3.6/site-packages/mxnet/ndarray/", line
881, in _sync_copyfrom
     File "/home/ec2-user/.local/lib/python3.6/site-packages/mxnet/", line 253, in
       raise MXNetError(py_str(_LIB.MXGetLastError()))
   mxnet.base.MXNetError: [19:09:04] src/ndarray/ Check failed: size
== to->Size() (-294967296 vs. 4000000000) : copying size mismatch, from: 18446744072529682432
bytes, to: 16000000000 bytes.
   Stack trace:
     [bt] (0) /home/ec2-user/.local/lib/python3.6/site-packages/mxnet/
     [bt] (1) /home/ec2-user/.local/lib/python3.6/site-packages/mxnet/
     [bt] (2) /home/ec2-user/.local/lib/python3.6/site-packages/mxnet/
const*, unsigned long) const+0x284) [0x7efff6fe5934]
     [bt] (3) /home/ec2-user/.local/lib/python3.6/site-packages/mxnet/
     [bt] (4) /usr/lib64/ [0x7f0059bbacec]
     [bt] (5) /usr/lib64/ [0x7f0059bba615]
     [bt] (6) /usr/lib64/python3.6/lib-dynload/
     [bt] (7) /usr/lib64/python3.6/lib-dynload/
     [bt] (8) /usr/lib64/ [0x7f0061bce7e0]
   ### Steps to reproduce
   T= nd.array(np.random.randn(5000000,800))
   (Paste the commands you ran that produced the error.)
   ## What have you tried to solve it?
   1. workaround: If you convert in smaller chunks and concatenate the ndarray to create the
final mxnet

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:

With regards,
Apache Git Services

View raw message