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 2022/03/22 10:57:48 UTC

[GitHub] [incubator-mxnet] bartekkuncer commented on a change in pull request #20974: [BUGFIX] Fix bitwise_right_shift with uint input

bartekkuncer commented on a change in pull request #20974:
URL: https://github.com/apache/incubator-mxnet/pull/20974#discussion_r832038568



##########
File path: src/operator/mshadow_op.h
##########
@@ -842,7 +842,11 @@ struct bitwise_right_shift : public mxnet_op::tunable {
         return DType(0);
       }
     }
-    return static_cast<int64_t>(a) >> static_cast<int64_t>(b);
+    if (std::is_same<DType, uint64_t>::value || std::is_same<DType, uint32_t>::value ||

Review comment:
       Is that not necessary only for uint64?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org