Skip to content

Commit

Permalink
IdentityBuilder should add Delimit for each input (#14592)
Browse files Browse the repository at this point in the history
…("####") should append for each input_def, not only on the last one
else branch of this if should return ignore_identity

https://github.com/microsoft/onnxruntime/blob/3d7518762ace6929be98e1203174c2dbf1ac094e/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. -->
  • Loading branch information
jchen351 authored Feb 6, 2023
1 parent b8fb932 commit 6f2dd10
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6f2dd10

Please sign in to comment.