lebeg commented on issue #12631: [MXNET-953] Fix oob memory read
URL: https://github.com/apache/incubator-mxnet/pull/12631#issuecomment-425684038
 
 
   I think with the cast it's better since you can avoid the copying. My 
suggestion would be the following:
   ```
   MSHADOW_TYPE_SWITCH(out_data.type_flag_, DType, 
*static_cast<DType*>(out_data.dptr_) = in_data.Size(););
   ```
   @apeforest what do you think?

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