Skip to content

Qualcomm AI Engine Direct - Adding QNN backend support for scatter.value core ATen op#20998

Open
qti-horodnic wants to merge 1 commit into
pytorch:mainfrom
CodeLinaro:scatter_value
Open

Qualcomm AI Engine Direct - Adding QNN backend support for scatter.value core ATen op#20998
qti-horodnic wants to merge 1 commit into
pytorch:mainfrom
CodeLinaro:scatter_value

Conversation

@qti-horodnic

Copy link
Copy Markdown
Contributor

Summary

Adds support for aten.scatter.value on the QNN backend by extending the existing ScatterElements builder.

torch.scatter(data, dim, index, value) scatters a scalar value into data at positions specified by index. Unlike scatter.src (which takes a tensor), scatter.value takes a scalar which requires special handling in the builder to convert the scalar to a static tensor compatible with QNN's ScatterElements op.

Test plan

pytest backends/qualcomm/tests/rework/htp/op/v68/test.py -k "test_scatter_value" -v


python backends/qualcomm/tests/test_qnn_delegate.py TestQNNQuantizedOperator.test_qnn_backend_scatter_value --soc_model SM8750 --host aisw-vm15-labsd --device 545ee4aa --build_folder build-android

python backends/qualcomm/tests/test_qnn_delegate.py TestQNNFloatingPointOperator.test_qnn_backend_scatter_value --soc_model SM8750 --host aisw-vm15-labsd --device 545ee4aa --build_folder build-android

@qti-horodnic

Copy link
Copy Markdown
Contributor Author

@pytorchbot label "release notes: qualcomm"

@github-actions

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@pytorch-bot

pytorch-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

⚠️ 12 Awaiting Approval, 2 Unrelated Failures

As of commit da92cc5 with merge base 96c83ed (image):

AWAITING APPROVAL - The following workflows need approval before CI can run:

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

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 Jul 16, 2026
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant