Skip to content

feat: support disposable dense attribute representations for constants in allowzero reshape canonicalization. #205

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

Conversation

ttjost
Copy link

@ttjost ttjost commented Sep 27, 2024

This is also needed for models to work properly. It seems like that we come from ONNX models, and the constant is marked as initializer the storage becomes DisposableDense (internal representation in onnx-mlir). So we also need to make sure that this is supported by the canonicalization.
Too bad I couldn't figure out how to write a test for this. 😢 . I'll try in another PR.

@ttjost ttjost requested a review from roberteg16 September 27, 2024 15:48
@ttjost ttjost enabled auto-merge September 27, 2024 15:50
@ttjost ttjost merged commit cc79422 into feature/onnx-to-tosa Sep 27, 2024
6 checks passed
@ttjost ttjost deleted the tiagot.support_disposable_dense_int_allowzero_canonicalization branch September 27, 2024 16:30
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