!27823 fix ignoring return value
Merge pull request !27823 from looop5/static_check
This commit is contained in:
commit
f7a880142e
|
@ -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, ®);
|
||||
|
|
Loading…
Reference in New Issue