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

[IREE EP] Fix ElementsAttr iteration error from MLIR. #10

Merged

Conversation

vinayakdsci
Copy link

Before this patch, many models would get an error from MLIR (ElementsAttr does not provide iteration facilities for type ).

This patch now enables importing initializers on demand, and disables serializing them in GraphProto obtained from onnxruntime::GraphView. The importer now generates correct IR for ONNX models, with correct number of inputs/outputs.

Copy link

@stellaraccident stellaraccident left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small comments to address.

@vinayakdsci vinayakdsci changed the title [IREE EP][JIT,Importer] Fix ElementsAttr iteration error from MLIR. [IREE EP] Fix ElementsAttr iteration error from MLIR. Sep 20, 2024
Copy link

@Shukla-Gaurav Shukla-Gaurav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, lgtm!

@vinayakdsci vinayakdsci merged commit c45ebb0 into nod-ai:onnxrt-rebase Sep 20, 2024
6 of 10 checks passed
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.

3 participants