Skip to content

Qualcomm AI Engine Direct - Adding QNN backend support for rand core ATen op#18298

Open
qti-horodnic wants to merge 1 commit intopytorch:mainfrom
CodeLinaro:rand
Open

Qualcomm AI Engine Direct - Adding QNN backend support for rand core ATen op#18298
qti-horodnic wants to merge 1 commit intopytorch:mainfrom
CodeLinaro:rand

Conversation

@qti-horodnic
Copy link
Contributor

Summary

Added support for the nonZero core ATen op using the existing QNN backend implementation of randomuniformlike. Note only UINT32 is supported, so there is only a quantized test which uses the addition op in order to test the quantized input.

Test plan

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

@pytorch-bot
Copy link

pytorch-bot bot commented Mar 18, 2026

🔗 Helpful Links

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

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

✅ No Failures

As of commit 7ef4121 with merge base a5423eb (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 Mar 18, 2026
@qti-horodnic
Copy link
Contributor Author

@pytorchbot label "release notes: qualcomm"

@pytorch-bot pytorch-bot bot added the release notes: qualcomm Changes to the Qualcomm backend delegate label Mar 18, 2026
@abhinaykukkadapu
Copy link
Contributor

@qti-horodnic please rebase this as well.

self,
node: torch.fx.Node,
nodes_to_wrappers: Dict[torch.fx.Node, PyQnnManager.TensorWrapper],
) -> PyQnnManager.PyQnnOpWrapper:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Add input type guard to support only int32?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this number still correct?

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. release notes: qualcomm Changes to the Qualcomm backend delegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants