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:
Jian Chen 2023-02-06 15:36:42 -08:00 committed by GitHub
parent b8fb9320ac
commit 6f2dd10d52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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