reminisce commented on a change in pull request #10889: [MXNET-382] Shape and 
Size Operator
URL: https://github.com/apache/incubator-mxnet/pull/10889#discussion_r198699893
 
 

 ##########
 File path: src/operator/mshadow_op.h
 ##########
 @@ -92,7 +92,8 @@ MXNET_UNARY_MATH_OP(identity_grad, 1);
 struct identity_with_cast {
   template<typename DTypeIn, typename DTypeOut>
   MSHADOW_XINLINE static void Map(int i, DTypeOut *out, DTypeIn *in) {
-    out[i] = DTypeOut(in[i]);
+    DTypeIn in_data = in[i];
 
 Review comment:
   What's the purpose of this change?

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


With regards,
Apache Git Services

Reply via email to