Skip to content

Samsung Exynos AI LiteCore - test annoate qparam - #24659

Merged
SS-JIA merged 2 commits into
mainfrom
exynos-test-annoate-qparam
Nov 6, 2026
Merged

SS-JIA merged 2 commits into
mainfrom
exynos-test-annoate-qparam

Conversation

@Jiseong-oh

@Jiseong-oh Jiseong-oh commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

_walk_qdq_chain_to_terminals dropped the terminal when a Q/DQ node fed both other Q/DQ nodes and direct float consumers, leaving the float branch's SharedQuant op silently unannotated (accuracy drop only). Also add GraphBuilder-based pass tests (backward/fan-out/negative cases) and wire them into CI before the device gate.

Test plan

  W1105 08:14:17.121000 245951 site-packages/torch/utils/_pytree.py:630] <enum 'KernelPreference'> is an Enum subclass and is now natively supported by torch.compile as an opaque value
  type. Calling register_constant() on Enum subclasses is deprecated and will be an error in a future release.
  .............
  ----------------------------------------------------------------------
  Ran 13 tests in 0.367s

  OK

cc @SS-JIA @digantdesai @kimishpatel

Jiseong-oh and others added 2 commits November 5, 2026 10:48
* Fix QDQ walk and tests for AnnotateQparamsPass

_walk_qdq_chain_to_terminals dropped the terminal when a Q/DQ node fed
both other Q/DQ nodes and direct float consumers, leaving the float
branch's SharedQuant op silently unannotated (accuracy drop only). Also
add GraphBuilder-based pass tests (backward/fan-out/negative cases) and
wire them into CI before the device gate.

Co-authored-by: Jintaek Noh <jintech.noh@samsung.com>
Signed-off-by: Jiseong.Oh <jiseong.oh@samsung.com>
Requantization parameters were misapplied due to inconsistent node
ordering between _get_last_dqs and _collect_dq_nodes.
This discrepancy arose from direct SharedQuant operations
and differences in terminal node positions based on user order.
To resolve this, _get_last_dqs was unified with
_walk_qdq_chain_to_terminals to ensure a single, consistent terminal order.
Direct consumers are now propagated separately, and requantize parameters
are looked up using this synchronized order.

Signed-off-by: Jiseong Oh <jiseong.oh@samsung.com>
@pytorch-bot

pytorch-bot Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ No Failures

As of commit 41dcb3c with merge base 818f25f (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 Nov 5, 2026
@github-actions

github-actions Bot commented Nov 5, 2026

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.

@Jiseong-oh Jiseong-oh added partner: samsung For backend delegation, kernels, demo, etc. from the 3rd-party partner, Samsung module: samsung labels Nov 5, 2026
@Jiseong-oh
Jiseong-oh requested a review from SS-JIA November 5, 2026 10:54
@Jiseong-oh Jiseong-oh changed the title Exynos test annoate qparam Samsung Exynos AI LiteCore - test annoate qparam Nov 5, 2026
@Jiseong-oh

Jiseong-oh commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator Author

This PR was required from #22725 (comment)

@SS-JIA
SS-JIA merged commit 6f06919 into main Nov 6, 2026
@SS-JIA
SS-JIA deleted the exynos-test-annoate-qparam branch November 6, 2026 22:27

This branch was previously deployed

1 inactive deployment
cadence — 41dcb3c4 Deployed Nov 5, 2026 by Jiseong-oh
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: samsung partner: samsung For backend delegation, kernels, demo, etc. from the 3rd-party partner, Samsung

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants