apeforest commented on issue #11495: Bug for matrices of multiple dimension, 
with one dimension much larger
URL: 
https://github.com/apache/incubator-mxnet/issues/11495#issuecomment-403112158
 
 
   More details about this bug: The `Size()` in TShape returns an size_t object 
(700000x128x128 in this case). However, the mshadow::Shape uses unsigned_int 
for each dimension. When converting a ndarray to numpy, the [Copy 
function](https://github.com/apache/incubator-mxnet/blob/030fbc3c7baec4a0f0cce78a45aa1da00eea0b48/src/ndarray/ndarray_function.cc#L41)
 flattens the TShape to a 1-D mshadow::Shape, therefore causing the integer 
overflow issue here. 

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