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?
[ Full content available at: https://github.com/apache/incubator-mxnet/pull/12631 ] This message was relayed via gitbox.apache.org for [email protected]
