!22125 fix uint8 overflow bug

Merge pull request !22125 from yuchaojie/r1.4
This commit is contained in:
i-robot 2021-08-21 06:15:56 +00:00 committed by Gitee
commit fe435e296e
1 changed files with 2 additions and 2 deletions

View File

@ -70,11 +70,11 @@ CNodePtr CreateFusionOp(const std::vector<AnfNodePtr> &inputs_list, const std::v
MS_EXCEPTION_IF_NULL(fusion_op);
std::vector<std::string> 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<std::string> 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));
}