Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoBump] Merge with a99e3780 (Dec 09) (130) #520

Merged
merged 3 commits into from
Feb 10, 2025

Conversation

mgehre-amd
Copy link
Collaborator

No description provided.

vinayakdsci and others added 3 commits December 9, 2024 11:58
)

Dense Resources cannot have `-` characters as part of the resource keys.
Many ONNX models, however, do have these characters in `TensorProto` or
initializer names.

This patch adds an unconditional replace function in the sanitization of
initializer names that replaces all `-` characters with `_`
(underscores) when the dense resources are created, which allows
successful parsing of the IR.

In case the name was legal before sanitization, the function has no
effect. Unnecessary additional time complexity is avoided by omitting an
`if` condition to check containment.
Refactors llvm#3901 by merging
illegal character sanitization into the regex and removing call to
`replace()`.
Base automatically changed from bump_to_c253512e to bump_to_c1892de6 February 10, 2025 12:16
@mgehre-amd mgehre-amd merged commit b508995 into bump_to_c1892de6 Feb 10, 2025
2 of 4 checks passed
@mgehre-amd mgehre-amd deleted the bump_to_a99e3780 branch February 10, 2025 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants