You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by ju...@apache.org on 2023/03/19 17:06:33 UTC

[tvm] branch unity updated: [Unity][Lint] Fix cpplint casting (#14333)

This is an automated email from the ASF dual-hosted git repository.

junrushao pushed a commit to branch unity
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/unity by this push:
     new aeb6f21446 [Unity][Lint] Fix cpplint casting (#14333)
aeb6f21446 is described below

commit aeb6f2144674d77ba75c283a6ffabdbe3acf86d4
Author: Jiawei Liu <ja...@gmail.com>
AuthorDate: Sun Mar 19 12:06:25 2023 -0500

    [Unity][Lint] Fix cpplint casting (#14333)
    
    fix: cpplint casting
---
 src/relax/transform/to_mixed_precision.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/relax/transform/to_mixed_precision.cc b/src/relax/transform/to_mixed_precision.cc
index 4728f81b63..1cb6ff9e66 100644
--- a/src/relax/transform/to_mixed_precision.cc
+++ b/src/relax/transform/to_mixed_precision.cc
@@ -222,7 +222,7 @@ class DTypeDecisionCollector : public ExprVisitor {
         tuple_get_item_node->tuple->struct_info_.as<TupleStructInfoNode>();
     ICHECK(sinfo != nullptr) << "TupleGetItemNode must have TupleStructInfo";
     for (size_t i = 0; i < sinfo->fields.size(); ++i) {
-      if (i == (size_t)tuple_get_item_node->index) {
+      if (i == static_cast<size_t>(tuple_get_item_node->index)) {
         require_rhs.push_back(lhs_type);
       } else {
         require_rhs.push_back(NTypeFrom(sinfo->fields[i], unknown_));