!27823 fix ignoring return value

Merge pull request !27823 from looop5/static_check
This commit is contained in:
i-robot 2021-12-17 10:13:04 +00:00 committed by Gitee
commit f7a880142e
1 changed files with 1 additions and 1 deletions

View File

@ -582,7 +582,7 @@ void ConstructInputTensor(const OpExecInfoPtr &op_run_info, std::vector<int64_t>
opt::GetCustomOpAttrIndex(op_prim, &attr_indexes);
if (!attr_indexes.empty()) {
reg_exist = true;
reg.SetConstInputToAttr(attr_indexes);
(void)reg.SetConstInputToAttr(attr_indexes);
}
} else {
reg_exist = opt::ConstInputToAttrInfoRegistry::Instance().GetRegisterByOpName(op_run_info->op_name, &reg);