Skip to content

[ExecuTorch][WebGPU] Op-tests for q8ta_add#21192

Merged
meta-codesync[bot] merged 2 commits into
gh/JCNTH/152/basefrom
gh/JCNTH/152/head
Jul 24, 2026
Merged

[ExecuTorch][WebGPU] Op-tests for q8ta_add#21192
meta-codesync[bot] merged 2 commits into
gh/JCNTH/152/basefrom
gh/JCNTH/152/head

Conversation

@JCNTH

@JCNTH JCNTH commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Problem: The new q8ta_add int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the alpha term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A q8ta_add suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: cases.py registers basic, alpha=2.0 (fails byte-exact if the a + alpha*b term is dropped), and nonzero_zp cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); golden_dtype="float32" (int8 result is exactly representable). test_q8ta_add.py carries the delegation smoke test.
@exported-using-ghexport

Differential Revision: D112257600

Differential Revision: D112257600

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 48 New Failures, 29 Unrelated Failures

As of commit 81af300 with merge base 4a26c64 (image):

NEW FAILURES - The following jobs have failed:

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.

@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.

This was referenced Jul 22, 2026
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
JCNTH added a commit that referenced this pull request Jul 24, 2026
Pull Request resolved: #21192

Problem: The new `q8ta_add` int8 op needs golden coverage; its int8 output uses the int8-golden harness, and the `alpha` term (which the Vulkan glsl buffer path drops) must be pinned.

Solution: A `q8ta_add` suite goldens the kernel byte-exact against the CPU eager op with both operands as baked int8 constants, plus an export-delegation smoke test.

Implementation: `cases.py` registers `basic`, `alpha=2.0` (fails byte-exact if the `a + alpha*b` term is dropped), and `nonzero_zp` cases over int8 inputs spanning the sign-extend + requant-clamp edges (-128/127); `golden_dtype="float32"` (int8 result is exactly representable). `test_q8ta_add.py` carries the delegation smoke test.
ghstack-source-id: 406366821
@exported-using-ghexport

Differential Revision: [D112257600](https://our.internmc.facebook.com/intern/diff/D112257600/)
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. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants