diff --git a/mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/ub_pattern_fusion.cc b/mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/ub_pattern_fusion.cc index d1c1037bf0e..db4da0d6762 100644 --- a/mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/ub_pattern_fusion.cc +++ b/mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/ub_pattern_fusion.cc @@ -70,11 +70,11 @@ CNodePtr CreateFusionOp(const std::vector &inputs_list, const std::v MS_EXCEPTION_IF_NULL(fusion_op); std::vector input_names; - for (uint8_t i = 0; i < inputs_list.size(); i++) { + for (size_t i = 0; i < inputs_list.size(); i++) { (void)input_names.emplace_back("input" + std::to_string(i)); } std::vector output_names; - for (uint8_t i = 0; i < outputs_list.size(); i++) { + for (size_t i = 0; i < outputs_list.size(); i++) { (void)output_names.emplace_back("output" + std::to_string(i)); }