Skip to content

[ExecuTorch][WebGPU] aten.index.Tensor test suite (export + native golden)#20465

Open
JulianCloudNTH wants to merge 1 commit into
gh/JulianCloudNTH/60/basefrom
gh/JulianCloudNTH/60/head
Open

[ExecuTorch][WebGPU] aten.index.Tensor test suite (export + native golden)#20465
JulianCloudNTH wants to merge 1 commit into
gh/JulianCloudNTH/60/basefrom
gh/JulianCloudNTH/60/head

Conversation

@JulianCloudNTH

@JulianCloudNTH JulianCloudNTH commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Adds the test suite for the aten.index.Tensor op (stacked on the op diff):

  • test/ops/index/test_index.py: exports a module computing x[idx] through
    VulkanPartitioner for four configs (reorder/repeat indices over distinct self
    values, so a wrong-gather is visible), asserts a VulkanBackend delegate with
    index.Tensor absorbed (not a CPU fallback), and writes per-config .pte +
    .self/.idx/.golden.bin.
  • test/native/test_index.cpp: a standalone Dawn binary that loads each .pte, feeds
    self (fp32) + index (int64 at the program boundary, narrowed to the int32 buffer)
    and compares the gather against the torch golden at 1e-3, with a single-output
    shape guard.
  • Wired into CMake (webgpu_index_test), test/TARGETS (python_unittest test_index),
    and the Dawn native CI script.

Differential Revision: D109479000

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Jun 23, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 4 New Failures, 4 Unrelated Failures

As of commit 8f74aad with merge base 1b726b2 (image):

NEW FAILURES - The following jobs have failed:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

BROKEN TRUNK - The following jobs failed but was present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

This was referenced Jun 23, 2026
@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 Jun 23, 2026
@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.

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