Skip to content

Conversation

@roman-janik-nxp
Copy link
Collaborator

@roman-janik-nxp roman-janik-nxp commented Oct 27, 2025

Summary

This PR replaces optimization in move_relu_before_concat.py by MoveActivationBeforeConcat aten pass. The pass moves selected activations that are supported for fusion on Neutron (Relu, Relu6, Sigmoid, Tanh) before the concat node if concat input nodes are either Conv 2D or Linear 2D. The whole node Logic is determined by target specs, now supporting Neutron-C. Tests updated.

Test plan

Unit tests provided (test_move_activation_before_concatenation.py).

cc @robert-kalmar

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 27, 2025

🔗 Helpful Links

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

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

⏳ No Failures, 9 Pending

As of commit 73fb5e2 with merge base acf5b4b (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 Oct 27, 2025
@roman-janik-nxp
Copy link
Collaborator Author

@pytorchbot label "module: nxp" "release notes: nxp"

@pytorch-bot pytorch-bot bot 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 Oct 27, 2025
@roman-janik-nxp roman-janik-nxp force-pushed the feature/nxg11066/EIEX-465-Replace-move_relu_before_concat-optimization_github branch from cf63bbc to 73fb5e2 Compare November 6, 2025 16:34
@roman-janik-nxp
Copy link
Collaborator Author

The failing tests are not caused by this PR.

@roman-janik-nxp roman-janik-nxp merged commit 27c48b9 into pytorch:main Nov 6, 2025
137 of 142 checks passed
@roman-janik-nxp roman-janik-nxp deleted the feature/nxg11066/EIEX-465-Replace-move_relu_before_concat-optimization_github branch November 6, 2025 18:14
abhinaykukkadapu pushed a commit to abhinaykukkadapu/executorch that referenced this pull request Nov 6, 2025
)

### Summary
This PR replaces optimization in `move_relu_before_concat.py` by
`MoveActivationBeforeConcat` aten pass. The pass moves selected
activations that are supported for fusion on Neutron (Relu, Relu6,
Sigmoid, Tanh) before the `concat` node if concat input nodes are either
Conv 2D or Linear 2D. The whole node Logic is determined by target
specs, now supporting Neutron-C. Tests updated.

### Test plan
Unit tests provided (test_move_activation_before_concatenation.py).

cc @robert-kalmar
JacobSzwejbka pushed a commit that referenced this pull request Nov 6, 2025
### Summary
This PR replaces optimization in `move_relu_before_concat.py` by
`MoveActivationBeforeConcat` aten pass. The pass moves selected
activations that are supported for fusion on Neutron (Relu, Relu6,
Sigmoid, Tanh) before the `concat` node if concat input nodes are either
Conv 2D or Linear 2D. The whole node Logic is determined by target
specs, now supporting Neutron-C. Tests updated.

### Test plan
Unit tests provided (test_move_activation_before_concatenation.py).

cc @robert-kalmar
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