wkcn commented on issue #13098: size_array operator returns wrong results on 
MacOS
URL: 
https://github.com/apache/incubator-mxnet/issues/13098#issuecomment-435547902
 
 
   In 
[src/operator/tensor/elemwise_unary_op_basic.cc#L546](https://github.com/apache/incubator-mxnet/blob/master/src/operator/tensor/elemwise_unary_op_basic.cc#L546),
   ```c++
     const index_t size_var = in_data.Size();
     memcpy(out_data.dptr_, &size_var, 1U * sizeof(int64_t));
   ```
   
   In `3rdparty/dmlc-core/include/dmlc/data.h`,
   ```c++
   typedef unsigned index_t;  
   ```
   
   It's confusing that `index_t` may not the same as `int64_t`

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