Skip to content

Conversation

@roman-janik-nxp
Copy link
Collaborator

@roman-janik-nxp roman-janik-nxp commented Feb 11, 2026

…egate_to_npu switch

Summary

Adds support for dim-order feature to example inputs in the pipeline. Adds delegate_to_npu switch.

Test plan

All NXP backend tests using executorch_pipeline.py.

cc @robert-kalmar @JakeStevens @digantdesai

@pytorch-bot
Copy link

pytorch-bot bot commented Feb 11, 2026

🔗 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 Pending

As of commit 7daa71e with merge base b871398 (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 11, 2026
@roman-janik-nxp roman-janik-nxp added module: nxp Issues related to NXP Neutron NPU delegation and code under backends/nxp/ release notes: nxp Changes to the NXP Neutron backend delegate and removed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Feb 11, 2026
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 11, 2026
dtype: torch.dtype = torch.float32
dim_order: memory_format = torch.contiguous_format

def _convert_input_dim_order(example_input, input_spec):
Copy link
Collaborator

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)

@roman-janik-nxp roman-janik-nxp force-pushed the feature/nxg11066/EIEX-712-Add-dim-order-support-to-pipeline branch from 143e923 to 6166623 Compare February 12, 2026 09:46
@roman-janik-nxp roman-janik-nxp force-pushed the feature/nxg11066/EIEX-712-Add-dim-order-support-to-pipeline branch from 6166623 to 7daa71e Compare February 12, 2026 10:49

def _convert_input_data_to_expected_dim_order(
example_input: tuple[torch.Tensor, ...], input_spec: tuple[ModelInputSpec, ...]
):
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: nxp Issues related to NXP Neutron NPU delegation and code under backends/nxp/ release notes: nxp Changes to the NXP Neutron backend delegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants