[QNN EP] Add UDO reference sample scripts - #757
Merged
Merged
Conversation
huaychou
force-pushed
the
dev/huaychou/udo-sample
branch
3 times, most recently
from
August 26, 2026 07:05
df4d91d to
62d7573
Compare
huaychou
force-pushed
the
dev/huaychou/udo-sample
branch
4 times, most recently
from
September 10, 2026 08:59
751404f to
67b19ec
Compare
Add a self-contained, copy-runnable MyAdd user-defined operation (UDO) sample for QNN EP outside the gtest suite. The sample covers model and test-data generation, CPU/HTP op-package builds, and C++ and Python inference paths, including on-device usage. The samples exercise automatic custom-op domain registration through ORT_QNN_CUSTOM_OP_DOMAINS, so no manual Ort::CustomOpDomain setup or schema companion library is required.
huaychou
force-pushed
the
dev/huaychou/udo-sample
branch
from
September 11, 2026 03:40
67b19ec to
8599dc5
Compare
huaychou
marked this pull request as ready for review
September 11, 2026 08:50
huaychou
requested review from
minfhong-qti,
qti-ashwshan,
qti-chuteng,
qti-shubham,
qti-yuduo,
tirupath-qti and
yuhuchua-qti
as code owners
September 11, 2026 08:50
Collaborator
|
The PR description references |
Collaborator
Author
After #770, the manual UDO custom-op domain registration is no longer required, so |
minfhong-qti
approved these changes
Sep 18, 2026
qti-chuteng
reviewed
Sep 18, 2026
kuanyul-qti
reviewed
Sep 21, 2026
kuanyul-qti
approved these changes
Sep 21, 2026
qti-chuteng
approved these changes
Sep 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add a user-facing MyAdd QNN user-defined operation (UDO) reference sample at
qcom/samples/qnn_udo_myadd/. The sample demonstrates the complete QNN EP custom-op workflow outside the unit-test binary:artifacts/directory.ORT_QNN_CUSTOM_OP_DOMAINS; no manualOrt::CustomOpDomainsetup or schema companion library is required.Motivation and context
The MyAdd UDO coverage previously lived primarily in unit-test fixtures. This sample provides a copy-runnable developer reference for building, registering, validating, and deploying a QNN UDO across CPU, HTP simulation, and Android HTP execution.
Validation
0.00e+00.0.0118(within the0.0314QDQ tolerance).QnnCPUBackendTests.UDO_Op_MyAdd_AutoDomainOnlyandQnnHTPBackendTests.UDO_Op_MyAddpassed.Models: 1,Succeeded: 1,Failed: 0).ORT_QNN_CUSTOM_OP_DOMAINS.