-
Notifications
You must be signed in to change notification settings - Fork 835
NXP backend: Add dim order support to executorch_pipeline.py, add del… #17379
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
base: main
Are you sure you want to change the base?
NXP backend: Add dim order support to executorch_pipeline.py, add del… #17379
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/17379
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 2 PendingAs of commit 7daa71e with merge base b871398 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
| dtype: torch.dtype = torch.float32 | ||
| dim_order: memory_format = torch.contiguous_format | ||
|
|
||
| def _convert_input_dim_order(example_input, input_spec): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit:
The name is misleading. Across our code-base, converting dim orders (node formats) means converting the formats to "equivalent" ones in the other framework (for example channels first -> channels last).
This function converts input data to specified dim order. Please consider a different name. (and type-hints wouldn't hurt)
143e923 to
6166623
Compare
…egate_to_npu switch
6166623 to
7daa71e
Compare
|
|
||
| def _convert_input_data_to_expected_dim_order( | ||
| example_input: tuple[torch.Tensor, ...], input_spec: tuple[ModelInputSpec, ...] | ||
| ): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the type-hints, but you forgot to annotate the return type.
…egate_to_npu switch
Summary
Adds support for dim-order feature to example inputs in the pipeline. Adds
delegate_to_npuswitch.Test plan
All NXP backend tests using executorch_pipeline.py.
cc @robert-kalmar @JakeStevens @digantdesai