Skip to content

NXP backend: Add support for aten.max_pool1d.default.#17706

Open
MartinPavella wants to merge 5 commits intopytorch:mainfrom
nxp-upstream:nxg01483/EIEX-732-add-support-for-aten.max_pool1d-to-nxp-backend
Open

NXP backend: Add support for aten.max_pool1d.default.#17706
MartinPavella wants to merge 5 commits intopytorch:mainfrom
nxp-upstream:nxg01483/EIEX-732-add-support-for-aten.max_pool1d-to-nxp-backend

Conversation

@MartinPavella
Copy link
Collaborator

@MartinPavella MartinPavella commented Feb 25, 2026

Summary

This PR reworks max_pool2d support to accurately reflect Neutron requirements, and adds support for max_pool1d via shape extension to 4D and leveraging existing max_pool2d support.

Test plan

Unit-tests provided.

cc @robert-kalmar @JakeStevens @digantdesai

@MartinPavella MartinPavella self-assigned this Feb 25, 2026
@MartinPavella MartinPavella 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 labels Feb 25, 2026
@pytorch-bot
Copy link

pytorch-bot bot commented Feb 25, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/17706

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 32c0d66 with merge base 331ac4a (image):
💚 Looks good so far! There are no failures yet. 💚

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 25, 2026
@MartinPavella
Copy link
Collaborator Author

@novak-vaclav please feel free to review as well.

@MartinPavella
Copy link
Collaborator Author

MartinPavella commented Feb 25, 2026

This PR is based on #17412 as they are closely related. Feel free to review that one first.

@MartinPavella MartinPavella force-pushed the nxg01483/EIEX-732-add-support-for-aten.max_pool1d-to-nxp-backend branch from 9aa24f9 to 2db295c Compare February 26, 2026 07:03
This change is in preparation for `aten.max_pool1d.default` support, which gets converted to unsqueeze -> max_pool2d_with_indices -> squeeze during lowering to edge. So the `max_pool2d_with_indices` must be converted to `max_pool2d` in edge dialect.
@MartinPavella MartinPavella force-pushed the nxg01483/EIEX-732-add-support-for-aten.max_pool1d-to-nxp-backend branch from 2db295c to 32c0d66 Compare February 26, 2026 14:13
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