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 2018/01/04 09:47:33 UTC

[GitHub] starimpact opened a new issue #9304: FlatTo1D in copy Tensor is a problem!

starimpact opened a new issue #9304: FlatTo1D in copy Tensor is a problem!
URL: https://github.com/apache/incubator-mxnet/issues/9304
 
 
   
   in ndarray Copy function:
   ```
           mshadow::Copy(to->FlatTo1D<cpu, DType>(),
                         from.FlatTo1D<cpu, DType>());
   ```
   FlatTo1D will cause a ```int of Shape``` overflow problem. Because the Shape value type is ```index_t``` which range is on ```int```. Sometimes, we need to handle a very big data, which size will exceed the range of int. 
   So... I suggest the following code:
   ```
           mshadow::Copy(to->FlatTo2D<cpu, DType>(),
                         from.FlatTo2D<cpu, DType>());
   ```
   yes....just convert to 2D shape, we will be able to handle much bigger very big array data.
   
   how about it?
   @piiswrong 
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services