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][Importer] Fix IR import for onnx.ConstantOfShape #11

Merged

Conversation

vinayakdsci
Copy link

Fixes the IR generation for onnx.ConstantOfShape op. Earlier, the op would segfault, due to absence of data in tensor_proto.<type>_data(). The importer now directly uses raw data from the tensor proto to generate a splat tensor.

Also, now the output of the op is stored in nv_map with the name of the output, rather than the name of the node, so that there is no "Non topologically produced ONNX input node" error, when the output is consumed later in the IR.

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.

Few minor comments. Thanks!

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 e6877af into nod-ai:onnxrt-rebase Sep 23, 2024
6 of 10 checks passed
@vinayakdsci
Copy link
Author

vinayakdsci commented Sep 23, 2024

Thanks for the review, @kumardeepakamd and @Shukla-Gaurav!

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