mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-29 20:14:01 +00:00
IdentityBuilder should add Delimit for each input (#14592)
…("####") should append for each input_def, not only on the last one
else branch of this if should return ignore_identity
3d7518762a/onnxruntime/core/optimizer/identical_children_consolidation.cc (L66)
identity.append("####") should append for each input_def, not only on
the last one
### Description
<!-- Describe your changes. -->
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
This commit is contained in:
parent
b8fb9320ac
commit
6f2dd10d52
1 changed files with 4 additions and 1 deletions
|
|
@ -117,8 +117,11 @@ string_view IdenticalChildrenConsolidation::IdentityBuilder(const Graph& graph,
|
|||
} else {
|
||||
identity.append(name);
|
||||
}
|
||||
} else {
|
||||
return ignore_identity;
|
||||
}
|
||||
identity.append("####");
|
||||
}
|
||||
return {identity.append("####")};
|
||||
return {identity};
|
||||
}
|
||||
} // namespace onnxruntime
|
||||
Loading…
Reference in a new issue