Skip to content

[AMD][PyTorch] Reland: Redirect index_add_ to scatter_add_ on HIP for large tensors (#181955) - #181955

Closed
haoyuz wants to merge 1 commit into
pytorch:mainfrom
haoyuz:export-D103100245
Closed

haoyuz wants to merge 1 commit into
pytorch:mainfrom
haoyuz:export-D103100245

Conversation

@haoyuz

@haoyuz haoyuz commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

Reland of D100635529 (#180430), which was reverted in D103039749 because the new bf16 path of test_index_add_correctness_2d_out_of_place failed on NVIDIA OSS CI. ngimel pointed out that with num_dest=200, num_src=5000 (~25 atomic adds per destination row), the per-element rounding from NVIDIA's index_add_ kernel exceeds the original atol=5e-2 max-abs tolerance — exactly the rounding behavior expected for bf16 atomics under contention. Local repro on H100 confirmed the same failure (max abs diff ~0.39 vs 0.05 allowed) and showed that two more nearby tests (test_index_add_correctness_2d_large and test_index_add_correctness_2d_alpha) had similarly tight tolerances that fail on NVIDIA when the high-contention atomic-add ordering diverges from the CPU sequential reference.

All AMD-side changes from D100635529 are restored — the HIP-only index_add_ → scatter_add_ redirect in Indexing.cu and the new scripts/haoyuz/amd/index_add/ benchmark + standalone test. The only difference vs the reverted version is in the three new tests in caffe2/test/test_indexing.py that compare a high-contention GPU result against a CPU fp32 sequential reference. Per-element max-abs/rel tolerances are replaced with bounds that reflect the actual atomic-add accumulation noise: bf16/fp16 use L2 relative error with a 5e-2 ceiling (measured 0.017 worst-case), and fp32 uses atol=rtol=1e-3 (measured 1.3e-5 to 1.8e-4 worst-case). The HIP redirect itself is unchanged and the AMD MI350X performance numbers (4.8x speedup on Zipf alpha=1.5) still hold.

PR #146264 has more details on scatter_add optimizations for AMD MI300 / MI350 GPUs.

Co-authored-by: Claude

Test Plan:
On NVIDIA H100 (devvm2464), all six new index_add CUDA tests pass, and the broader TestIndexing suite is clean:

PYTORCH_TEST_REMOTE_GPU=1 .../test_others_cuda.par -r 'index_add_correctness'
test_index_add_correctness_2d_alpha_cuda                       ... ok
test_index_add_correctness_2d_large_cuda_bfloat16              ... ok
test_index_add_correctness_2d_large_cuda_float16               ... ok
test_index_add_correctness_2d_large_cuda_float32               ... ok
test_index_add_correctness_2d_out_of_place_cuda_bfloat16       ... ok
test_index_add_correctness_2d_out_of_place_cuda_float32        ... ok
Ran 6 tests in 0.139s

PYTORCH_TEST_REMOTE_GPU=1 .../test_others_cuda.par -r 'TestIndexing'
Ran 176 tests in 8.290s
OK (skipped=1)

Confirmed the fix actually addresses the original failure: with the prior tolerances re-applied, test_index_add_correctness_2d_out_of_place_cuda_bfloat16 reproduces the exact OSS CI failure on H100 (Mismatched elements: 54 / 6400, greatest absolute difference: 0.3878 vs 0.05 allowed).

The pre-existing AMD MI350X benchmarks and standalone tests from D100635529 are unchanged.

Reverted-by: D103039749

Reviewed By: echen4096

Differential Revision: D103100245

@pytorch-bot

pytorch-bot Bot commented Apr 30, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

⏳ No Failures, 68 Pending

As of commit c05e6d3 with merge base 6406dc3 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@pytorch-bot pytorch-bot Bot added the ci-no-td Do not run TD on this PR label Apr 30, 2026
@pytorch-bot

pytorch-bot Bot commented Apr 30, 2026

Copy link
Copy Markdown

This PR needs a release notes: label

If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@meta-codesync

meta-codesync Bot commented Apr 30, 2026

Copy link
Copy Markdown

@haoyuz has exported this pull request. If you are a Meta employee, you can view the originating Diff in D103100245.

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Apr 30, 2026
… large tensors (pytorch#181955)

Summary:

Reland of D100635529 (pytorch#180430), which was reverted in D103039749 because the new bf16 path of `test_index_add_correctness_2d_out_of_place` failed on NVIDIA OSS CI. ngimel pointed out that with `num_dest=200, num_src=5000` (~25 atomic adds per destination row), the per-element rounding from NVIDIA's `index_add_` kernel exceeds the original `atol=5e-2` max-abs tolerance — exactly the rounding behavior expected for bf16 atomics under contention. Local repro on H100 confirmed the same failure (max abs diff ~0.39 vs 0.05 allowed) and showed that two more nearby tests (`test_index_add_correctness_2d_large` and `test_index_add_correctness_2d_alpha`) had similarly tight tolerances that fail on NVIDIA when the high-contention atomic-add ordering diverges from the CPU sequential reference.

All AMD-side changes from D100635529 are restored — the HIP-only `index_add_ → scatter_add_` redirect in `Indexing.cu` and the new `scripts/haoyuz/amd/index_add/` benchmark + standalone test. The only difference vs the reverted version is in the three new tests in `caffe2/test/test_indexing.py` that compare a high-contention GPU result against a CPU fp32 sequential reference. Per-element max-abs/rel tolerances are replaced with bounds that reflect the actual atomic-add accumulation noise: bf16/fp16 use L2 relative error with a 5e-2 ceiling (measured 0.017 worst-case), and fp32 uses atol=rtol=1e-3 (measured 1.3e-5 to 1.8e-4 worst-case). The HIP redirect itself is unchanged and the AMD MI350X performance numbers (4.8x speedup on Zipf alpha=1.5) still hold.

[PR pytorch#146264](pytorch#146264) has more details on `scatter_add` optimizations for AMD MI300 / MI350 GPUs.

Co-authored-by: Claude

Test Plan:
On NVIDIA H100 (devvm2464), all six new index_add CUDA tests pass, and the broader `TestIndexing` suite is clean:

```
PYTORCH_TEST_REMOTE_GPU=1 .../test_others_cuda.par -r 'index_add_correctness'
test_index_add_correctness_2d_alpha_cuda                       ... ok
test_index_add_correctness_2d_large_cuda_bfloat16              ... ok
test_index_add_correctness_2d_large_cuda_float16               ... ok
test_index_add_correctness_2d_large_cuda_float32               ... ok
test_index_add_correctness_2d_out_of_place_cuda_bfloat16       ... ok
test_index_add_correctness_2d_out_of_place_cuda_float32        ... ok
Ran 6 tests in 0.139s

PYTORCH_TEST_REMOTE_GPU=1 .../test_others_cuda.par -r 'TestIndexing'
Ran 176 tests in 8.290s
OK (skipped=1)
```

Confirmed the fix actually addresses the original failure: with the prior tolerances re-applied, `test_index_add_correctness_2d_out_of_place_cuda_bfloat16` reproduces the exact OSS CI failure on H100 (Mismatched elements: 54 / 6400, greatest absolute difference: 0.3878 vs 0.05 allowed).

The pre-existing AMD MI350X benchmarks and standalone tests from D100635529 are unchanged.

Reverted-by: D103039749

Reviewed By: echen4096

Differential Revision: D103100245
@meta-codesync meta-codesync Bot changed the title [AMD][PyTorch] Reland: Redirect index_add_ to scatter_add_ on HIP for large tensors [AMD][PyTorch] Reland: Redirect index_add_ to scatter_add_ on HIP for large tensors (#181955) Apr 30, 2026
@haoyuz
haoyuz force-pushed the export-D103100245 branch from 7159a00 to c05e6d3 Compare April 30, 2026 22:43
@facebook-github-tools

Copy link
Copy Markdown

@pytorchbot merge -i

(Initiating merge automatically since Phabricator Diff has merged, merging with -i because oss signals were bypassed internally)

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge failed

Reason: This PR needs a release notes: label
If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

Details for Dev Infra team Raised by workflow job

@pytorch-bot

pytorch-bot Bot commented May 1, 2026

Copy link
Copy Markdown

This PR needs a release notes: label

If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@haoyuz haoyuz added the topic: not user facing topic category label May 1, 2026
@facebook-github-tools

Copy link
Copy Markdown

@pytorchbot merge -i

(Initiating merge automatically since Phabricator Diff has merged, merging with -i because oss signals were bypassed internally)

@jeffdaily

Copy link
Copy Markdown
Collaborator

@haoyuz reverting for the second time. This PR breaks some ROCm tests. Can't keep using pytorchbot merge -i to ignore signals.

@pytorchbot revert -c ignoredsignal -m "test/test_sparse_csr.py::TestSparseCompressedCUDA::test_consistency_SparseCSR_mul_cuda_complex32 GH job link HUD commit link"

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@haoyuz your PR has been successfully reverted.
⚠️ This PR might contain internal changes
cc: @pytorch/pytorch-dev-infra

@facebook-github-tools

Copy link
Copy Markdown

@pytorchbot merge -i

(Initiating merge automatically since Phabricator Diff has merged, merging with -i because oss signals were bypassed internally)

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged while ignoring the following 0 checks:

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge failed

Reason: 1 jobs have failed, first few of them are: Meta Internal-Only Changes Check

Details for Dev Infra team Raised by workflow job

@haoyuz haoyuz closed this May 1, 2026
Alokksinha00 pushed a commit to Alokksinha00/pytorch that referenced this pull request May 15, 2026
… large tensors (pytorch#181955) (pytorch#181955)

Summary:

Reland of D100635529 (pytorch#180430), which was reverted in D103039749 because the new bf16 path of `test_index_add_correctness_2d_out_of_place` failed on NVIDIA OSS CI. ngimel pointed out that with `num_dest=200, num_src=5000` (~25 atomic adds per destination row), the per-element rounding from NVIDIA's `index_add_` kernel exceeds the original `atol=5e-2` max-abs tolerance — exactly the rounding behavior expected for bf16 atomics under contention. Local repro on H100 confirmed the same failure (max abs diff ~0.39 vs 0.05 allowed) and showed that two more nearby tests (`test_index_add_correctness_2d_large` and `test_index_add_correctness_2d_alpha`) had similarly tight tolerances that fail on NVIDIA when the high-contention atomic-add ordering diverges from the CPU sequential reference.

All AMD-side changes from D100635529 are restored — the HIP-only `index_add_ → scatter_add_` redirect in `Indexing.cu` and the new `scripts/haoyuz/amd/index_add/` benchmark + standalone test. The only difference vs the reverted version is in the three new tests in `caffe2/test/test_indexing.py` that compare a high-contention GPU result against a CPU fp32 sequential reference. Per-element max-abs/rel tolerances are replaced with bounds that reflect the actual atomic-add accumulation noise: bf16/fp16 use L2 relative error with a 5e-2 ceiling (measured 0.017 worst-case), and fp32 uses atol=rtol=1e-3 (measured 1.3e-5 to 1.8e-4 worst-case). The HIP redirect itself is unchanged and the AMD MI350X performance numbers (4.8x speedup on Zipf alpha=1.5) still hold.

[PR pytorch#146264](pytorch#146264) has more details on `scatter_add` optimizations for AMD MI300 / MI350 GPUs.

Co-authored-by: Claude

Test Plan:
On NVIDIA H100 (devvm2464), all six new index_add CUDA tests pass, and the broader `TestIndexing` suite is clean:

```
PYTORCH_TEST_REMOTE_GPU=1 .../test_others_cuda.par -r 'index_add_correctness'
test_index_add_correctness_2d_alpha_cuda                       ... ok
test_index_add_correctness_2d_large_cuda_bfloat16              ... ok
test_index_add_correctness_2d_large_cuda_float16               ... ok
test_index_add_correctness_2d_large_cuda_float32               ... ok
test_index_add_correctness_2d_out_of_place_cuda_bfloat16       ... ok
test_index_add_correctness_2d_out_of_place_cuda_float32        ... ok
Ran 6 tests in 0.139s

PYTORCH_TEST_REMOTE_GPU=1 .../test_others_cuda.par -r 'TestIndexing'
Ran 176 tests in 8.290s
OK (skipped=1)
```

Confirmed the fix actually addresses the original failure: with the prior tolerances re-applied, `test_index_add_correctness_2d_out_of_place_cuda_bfloat16` reproduces the exact OSS CI failure on H100 (Mismatched elements: 54 / 6400, greatest absolute difference: 0.3878 vs 0.05 allowed).

The pre-existing AMD MI350X benchmarks and standalone tests from D100635529 are unchanged.

Reverted-by: D103039749

Reviewed By: echen4096

Differential Revision: D103100245

Pull Request resolved: pytorch#181955
Approved by: https://github.com/echen4096
aperson30 pushed a commit to aperson30/pytorch that referenced this pull request Jun 20, 2026
… large tensors (pytorch#181955) (pytorch#181955)

Summary:

Reland of D100635529 (pytorch#180430), which was reverted in D103039749 because the new bf16 path of `test_index_add_correctness_2d_out_of_place` failed on NVIDIA OSS CI. ngimel pointed out that with `num_dest=200, num_src=5000` (~25 atomic adds per destination row), the per-element rounding from NVIDIA's `index_add_` kernel exceeds the original `atol=5e-2` max-abs tolerance — exactly the rounding behavior expected for bf16 atomics under contention. Local repro on H100 confirmed the same failure (max abs diff ~0.39 vs 0.05 allowed) and showed that two more nearby tests (`test_index_add_correctness_2d_large` and `test_index_add_correctness_2d_alpha`) had similarly tight tolerances that fail on NVIDIA when the high-contention atomic-add ordering diverges from the CPU sequential reference.

All AMD-side changes from D100635529 are restored — the HIP-only `index_add_ → scatter_add_` redirect in `Indexing.cu` and the new `scripts/haoyuz/amd/index_add/` benchmark + standalone test. The only difference vs the reverted version is in the three new tests in `caffe2/test/test_indexing.py` that compare a high-contention GPU result against a CPU fp32 sequential reference. Per-element max-abs/rel tolerances are replaced with bounds that reflect the actual atomic-add accumulation noise: bf16/fp16 use L2 relative error with a 5e-2 ceiling (measured 0.017 worst-case), and fp32 uses atol=rtol=1e-3 (measured 1.3e-5 to 1.8e-4 worst-case). The HIP redirect itself is unchanged and the AMD MI350X performance numbers (4.8x speedup on Zipf alpha=1.5) still hold.

[PR pytorch#146264](pytorch#146264) has more details on `scatter_add` optimizations for AMD MI300 / MI350 GPUs.

Co-authored-by: Claude

Test Plan:
On NVIDIA H100 (devvm2464), all six new index_add CUDA tests pass, and the broader `TestIndexing` suite is clean:

```
PYTORCH_TEST_REMOTE_GPU=1 .../test_others_cuda.par -r 'index_add_correctness'
test_index_add_correctness_2d_alpha_cuda                       ... ok
test_index_add_correctness_2d_large_cuda_bfloat16              ... ok
test_index_add_correctness_2d_large_cuda_float16               ... ok
test_index_add_correctness_2d_large_cuda_float32               ... ok
test_index_add_correctness_2d_out_of_place_cuda_bfloat16       ... ok
test_index_add_correctness_2d_out_of_place_cuda_float32        ... ok
Ran 6 tests in 0.139s

PYTORCH_TEST_REMOTE_GPU=1 .../test_others_cuda.par -r 'TestIndexing'
Ran 176 tests in 8.290s
OK (skipped=1)
```

Confirmed the fix actually addresses the original failure: with the prior tolerances re-applied, `test_index_add_correctness_2d_out_of_place_cuda_bfloat16` reproduces the exact OSS CI failure on H100 (Mismatched elements: 54 / 6400, greatest absolute difference: 0.3878 vs 0.05 allowed).

The pre-existing AMD MI350X benchmarks and standalone tests from D100635529 are unchanged.

Reverted-by: D103039749

Reviewed By: echen4096

Differential Revision: D103100245

Pull Request resolved: pytorch#181955
Approved by: https://github.com/echen4096
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
… large tensors (pytorch#181955) (pytorch#181955)

Summary:

Reland of D100635529 (pytorch#180430), which was reverted in D103039749 because the new bf16 path of `test_index_add_correctness_2d_out_of_place` failed on NVIDIA OSS CI. ngimel pointed out that with `num_dest=200, num_src=5000` (~25 atomic adds per destination row), the per-element rounding from NVIDIA's `index_add_` kernel exceeds the original `atol=5e-2` max-abs tolerance — exactly the rounding behavior expected for bf16 atomics under contention. Local repro on H100 confirmed the same failure (max abs diff ~0.39 vs 0.05 allowed) and showed that two more nearby tests (`test_index_add_correctness_2d_large` and `test_index_add_correctness_2d_alpha`) had similarly tight tolerances that fail on NVIDIA when the high-contention atomic-add ordering diverges from the CPU sequential reference.

All AMD-side changes from D100635529 are restored — the HIP-only `index_add_ → scatter_add_` redirect in `Indexing.cu` and the new `scripts/haoyuz/amd/index_add/` benchmark + standalone test. The only difference vs the reverted version is in the three new tests in `caffe2/test/test_indexing.py` that compare a high-contention GPU result against a CPU fp32 sequential reference. Per-element max-abs/rel tolerances are replaced with bounds that reflect the actual atomic-add accumulation noise: bf16/fp16 use L2 relative error with a 5e-2 ceiling (measured 0.017 worst-case), and fp32 uses atol=rtol=1e-3 (measured 1.3e-5 to 1.8e-4 worst-case). The HIP redirect itself is unchanged and the AMD MI350X performance numbers (4.8x speedup on Zipf alpha=1.5) still hold.

[PR pytorch#146264](pytorch#146264) has more details on `scatter_add` optimizations for AMD MI300 / MI350 GPUs.

Co-authored-by: Claude

Test Plan:
On NVIDIA H100 (devvm2464), all six new index_add CUDA tests pass, and the broader `TestIndexing` suite is clean:

```
PYTORCH_TEST_REMOTE_GPU=1 .../test_others_cuda.par -r 'index_add_correctness'
test_index_add_correctness_2d_alpha_cuda                       ... ok
test_index_add_correctness_2d_large_cuda_bfloat16              ... ok
test_index_add_correctness_2d_large_cuda_float16               ... ok
test_index_add_correctness_2d_large_cuda_float32               ... ok
test_index_add_correctness_2d_out_of_place_cuda_bfloat16       ... ok
test_index_add_correctness_2d_out_of_place_cuda_float32        ... ok
Ran 6 tests in 0.139s

PYTORCH_TEST_REMOTE_GPU=1 .../test_others_cuda.par -r 'TestIndexing'
Ran 176 tests in 8.290s
OK (skipped=1)
```

Confirmed the fix actually addresses the original failure: with the prior tolerances re-applied, `test_index_add_correctness_2d_out_of_place_cuda_bfloat16` reproduces the exact OSS CI failure on H100 (Mismatched elements: 54 / 6400, greatest absolute difference: 0.3878 vs 0.05 allowed).

The pre-existing AMD MI350X benchmarks and standalone tests from D100635529 are unchanged.

Reverted-by: D103039749

Reviewed By: echen4096

Differential Revision: D103100245

Pull Request resolved: pytorch#181955
Approved by: https://github.com/echen4096
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
… large tensors (pytorch#181955) (pytorch#181955)

Summary:

Reland of D100635529 (pytorch#180430), which was reverted in D103039749 because the new bf16 path of `test_index_add_correctness_2d_out_of_place` failed on NVIDIA OSS CI. ngimel pointed out that with `num_dest=200, num_src=5000` (~25 atomic adds per destination row), the per-element rounding from NVIDIA's `index_add_` kernel exceeds the original `atol=5e-2` max-abs tolerance — exactly the rounding behavior expected for bf16 atomics under contention. Local repro on H100 confirmed the same failure (max abs diff ~0.39 vs 0.05 allowed) and showed that two more nearby tests (`test_index_add_correctness_2d_large` and `test_index_add_correctness_2d_alpha`) had similarly tight tolerances that fail on NVIDIA when the high-contention atomic-add ordering diverges from the CPU sequential reference.

All AMD-side changes from D100635529 are restored — the HIP-only `index_add_ → scatter_add_` redirect in `Indexing.cu` and the new `scripts/haoyuz/amd/index_add/` benchmark + standalone test. The only difference vs the reverted version is in the three new tests in `caffe2/test/test_indexing.py` that compare a high-contention GPU result against a CPU fp32 sequential reference. Per-element max-abs/rel tolerances are replaced with bounds that reflect the actual atomic-add accumulation noise: bf16/fp16 use L2 relative error with a 5e-2 ceiling (measured 0.017 worst-case), and fp32 uses atol=rtol=1e-3 (measured 1.3e-5 to 1.8e-4 worst-case). The HIP redirect itself is unchanged and the AMD MI350X performance numbers (4.8x speedup on Zipf alpha=1.5) still hold.

[PR pytorch#146264](pytorch#146264) has more details on `scatter_add` optimizations for AMD MI300 / MI350 GPUs.

Co-authored-by: Claude

Test Plan:
On NVIDIA H100 (devvm2464), all six new index_add CUDA tests pass, and the broader `TestIndexing` suite is clean:

```
PYTORCH_TEST_REMOTE_GPU=1 .../test_others_cuda.par -r 'index_add_correctness'
test_index_add_correctness_2d_alpha_cuda                       ... ok
test_index_add_correctness_2d_large_cuda_bfloat16              ... ok
test_index_add_correctness_2d_large_cuda_float16               ... ok
test_index_add_correctness_2d_large_cuda_float32               ... ok
test_index_add_correctness_2d_out_of_place_cuda_bfloat16       ... ok
test_index_add_correctness_2d_out_of_place_cuda_float32        ... ok
Ran 6 tests in 0.139s

PYTORCH_TEST_REMOTE_GPU=1 .../test_others_cuda.par -r 'TestIndexing'
Ran 176 tests in 8.290s
OK (skipped=1)
```

Confirmed the fix actually addresses the original failure: with the prior tolerances re-applied, `test_index_add_correctness_2d_out_of_place_cuda_bfloat16` reproduces the exact OSS CI failure on H100 (Mismatched elements: 54 / 6400, greatest absolute difference: 0.3878 vs 0.05 allowed).

The pre-existing AMD MI350X benchmarks and standalone tests from D100635529 are unchanged.

Reverted-by: D103039749

Reviewed By: echen4096

Differential Revision: D103100245

Pull Request resolved: pytorch#181955
Approved by: https://github.com/echen4096
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-td Do not run TD on this PR ciflow/trunk Trigger trunk jobs on your pull request fb-exported Merged meta-exported Reverted topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants