Repository navigation
Add scalar autograd tests for functions requiring 'special' Variables… - #4953
Merged
Merged
Conversation
pytorch#4951) * Properly fill in make_non_contiguous data for sizes that can't be made contiguous. * Use clone instead of copy.
colesbury
approved these changes
Jan 31, 2018
| continue | ||
| if not i.grad.data.eq(0).all(): | ||
| return fail_test('backward not multiplied by grad_output') | ||
| if type(i.grad) != type(i): |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
There are a couple of hacks here: 1) We need to squeeze the backward result because of implicit broadcast of the arguments to match behavior of ger. 2) The broadcast_dims code doesn't work for scalars; I added support for adding '.scalar' onto the end of the broadcast specification, but really this should just be a native function with _out support.
There is no dot_out, so the lack of _out isn't an issue.
Contributor
|
I don't think we should allow scalars in |
Contributor
Author
|
That same logic should apply to |
Contributor
Author
|
ok, I'm going to back out the contentious stuff; anything we do would probably be done as a native function, where we would want |
Contributor
Author
|
@pytorchbot retest this please. |
Contributor
Author
|
Onnx failure looks unrelated. |
tszulist-hbn
added a commit
to tszulist-hbn/pytorch
that referenced
this pull request
Oct 11, 2026
The previous commits skip 19 fft/stft ops on XPU in every functorch transform test, because in August they segfaulted workers at random on a local Data Center GPU Max 1550 (intel/torch-xpu-ops#4953). The skips date from the first commit of this stack, so XPU CI has never run these tests and the crash has not been seen on a CI machine (Data Center GPU Max 1100). With the skips removed, all 266 tests pass on an Arc B580 across four runs, one of them with two xdist workers as CI uses, with no crash. Intel's CI runs its fork of this file (test/xpu/functorch/test_ops_xpu.py) with no fft/stft skips. Removing them here lets XPU CI settle whether the crash is still there; if it is, the job log is the evidence pytorch#4953 lacks and the skips come back with it. xpu_unsupported now holds only the grid_sample xfail and stays the single name every XPU entry goes through. Test Plan: on an Arc B580: ``` cd test PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and (fft_ or stft)" PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and grid_sample" ``` fft/stft: 290 passed, 4 xfailed (the existing all-device has_batch_rule xfails of fft.ihfft2 and fft.ihfftn), 0 failed. The 290 include the 28 fftshift and ifftshift tests, which were never skipped. grid_sample: 9 passed, 20 skipped, 13 xfailed, 0 xpassed, unchanged by this commit. lintrunner test/functorch/test_ops.py is clean. Authored with assistance from an AI coding assistant (Claude Code). Co-Authored-By: Claude Opus 5.5 <[email protected]>
pytorchmergebot
pushed a commit
to tszulist-hbn/pytorch
that referenced
this pull request
Oct 12, 2026
The previous commits skip 19 fft/stft ops on XPU in every functorch transform test, because in August they segfaulted workers at random on a local Data Center GPU Max 1550 (intel/torch-xpu-ops#4953). The skips date from the first commit of this stack, so XPU CI has never run these tests and the crash has not been seen on a CI machine (Data Center GPU Max 1100). With the skips removed, all 266 tests pass on an Arc B580 across four runs, one of them with two xdist workers as CI uses, with no crash. Intel's CI runs its fork of this file (test/xpu/functorch/test_ops_xpu.py) with no fft/stft skips. Removing them here lets XPU CI settle whether the crash is still there; if it is, the job log is the evidence pytorch#4953 lacks and the skips come back with it. xpu_unsupported now holds only the grid_sample xfail and stays the single name every XPU entry goes through. Test Plan: on an Arc B580: ``` cd test PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and (fft_ or stft)" PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and grid_sample" ``` fft/stft: 290 passed, 4 xfailed (the existing all-device has_batch_rule xfails of fft.ihfft2 and fft.ihfftn), 0 failed. The 290 include the 28 fftshift and ifftshift tests, which were never skipped. grid_sample: 9 passed, 20 skipped, 13 xfailed, 0 xpassed, unchanged by this commit. lintrunner test/functorch/test_ops.py is clean. Authored with assistance from an AI coding assistant (Claude Code). Co-Authored-By: Claude Opus 5.5 <[email protected]>
pytorchmergebot
pushed a commit
to tszulist-hbn/pytorch
that referenced
this pull request
Oct 15, 2026
The previous commits skip 19 fft/stft ops on XPU in every functorch transform test, because in August they segfaulted workers at random on a local Data Center GPU Max 1550 (intel/torch-xpu-ops#4953). The skips date from the first commit of this stack, so XPU CI has never run these tests and the crash has not been seen on a CI machine (Data Center GPU Max 1100). With the skips removed, all 266 tests pass on an Arc B580 across four runs, one of them with two xdist workers as CI uses, with no crash. Intel's CI runs its fork of this file (test/xpu/functorch/test_ops_xpu.py) with no fft/stft skips. Removing them here lets XPU CI settle whether the crash is still there; if it is, the job log is the evidence pytorch#4953 lacks and the skips come back with it. xpu_unsupported now holds only the grid_sample xfail and stays the single name every XPU entry goes through. Test Plan: on an Arc B580: ``` cd test PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and (fft_ or stft)" PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and grid_sample" ``` fft/stft: 290 passed, 4 xfailed (the existing all-device has_batch_rule xfails of fft.ihfft2 and fft.ihfftn), 0 failed. The 290 include the 28 fftshift and ifftshift tests, which were never skipped. grid_sample: 9 passed, 20 skipped, 13 xfailed, 0 xpassed, unchanged by this commit. lintrunner test/functorch/test_ops.py is clean. Authored with assistance from an AI coding assistant (Claude Code). Co-Authored-By: Claude Opus 5.5 <[email protected]>
pytorchmergebot
pushed a commit
to tszulist-hbn/pytorch
that referenced
this pull request
Oct 15, 2026
The previous commits skip 19 fft/stft ops on XPU in every functorch transform test, because in August they segfaulted workers at random on a local Data Center GPU Max 1550 (intel/torch-xpu-ops#4953). The skips date from the first commit of this stack, so XPU CI has never run these tests and the crash has not been seen on a CI machine (Data Center GPU Max 1100). With the skips removed, all 266 tests pass on an Arc B580 across four runs, one of them with two xdist workers as CI uses, with no crash. Intel's CI runs its fork of this file (test/xpu/functorch/test_ops_xpu.py) with no fft/stft skips. Removing them here lets XPU CI settle whether the crash is still there; if it is, the job log is the evidence pytorch#4953 lacks and the skips come back with it. xpu_unsupported now holds only the grid_sample xfail and stays the single name every XPU entry goes through. Test Plan: on an Arc B580: ``` cd test PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and (fft_ or stft)" PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and grid_sample" ``` fft/stft: 290 passed, 4 xfailed (the existing all-device has_batch_rule xfails of fft.ihfft2 and fft.ihfftn), 0 failed. The 290 include the 28 fftshift and ifftshift tests, which were never skipped. grid_sample: 9 passed, 20 skipped, 13 xfailed, 0 xpassed, unchanged by this commit. lintrunner test/functorch/test_ops.py is clean. Authored with assistance from an AI coding assistant (Claude Code). Co-Authored-By: Claude Opus 5.5 <[email protected]>
pytorchmergebot
pushed a commit
to tszulist-hbn/pytorch
that referenced
this pull request
Oct 16, 2026
The previous commits skip 19 fft/stft ops on XPU in every functorch transform test, because in August they segfaulted workers at random on a local Data Center GPU Max 1550 (intel/torch-xpu-ops#4953). The skips date from the first commit of this stack, so XPU CI has never run these tests and the crash has not been seen on a CI machine (Data Center GPU Max 1100). With the skips removed, all 266 tests pass on an Arc B580 across four runs, one of them with two xdist workers as CI uses, with no crash. Intel's CI runs its fork of this file (test/xpu/functorch/test_ops_xpu.py) with no fft/stft skips. Removing them here lets XPU CI settle whether the crash is still there; if it is, the job log is the evidence pytorch#4953 lacks and the skips come back with it. xpu_unsupported now holds only the grid_sample xfail and stays the single name every XPU entry goes through. Test Plan: on an Arc B580: ``` cd test PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and (fft_ or stft)" PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and grid_sample" ``` fft/stft: 290 passed, 4 xfailed (the existing all-device has_batch_rule xfails of fft.ihfft2 and fft.ihfftn), 0 failed. The 290 include the 28 fftshift and ifftshift tests, which were never skipped. grid_sample: 9 passed, 20 skipped, 13 xfailed, 0 xpassed, unchanged by this commit. lintrunner test/functorch/test_ops.py is clean. Authored with assistance from an AI coding assistant (Claude Code). Co-Authored-By: Claude Opus 5.5 <[email protected]>
pytorchmergebot
pushed a commit
to tszulist-hbn/pytorch
that referenced
this pull request
Oct 17, 2026
The previous commits skip 19 fft/stft ops on XPU in every functorch transform test, because in August they segfaulted workers at random on a local Data Center GPU Max 1550 (intel/torch-xpu-ops#4953). The skips date from the first commit of this stack, so XPU CI has never run these tests and the crash has not been seen on a CI machine (Data Center GPU Max 1100). With the skips removed, all 266 tests pass on an Arc B580 across four runs, one of them with two xdist workers as CI uses, with no crash. Intel's CI runs its fork of this file (test/xpu/functorch/test_ops_xpu.py) with no fft/stft skips. Removing them here lets XPU CI settle whether the crash is still there; if it is, the job log is the evidence pytorch#4953 lacks and the skips come back with it. xpu_unsupported now holds only the grid_sample xfail and stays the single name every XPU entry goes through. Test Plan: on an Arc B580: ``` cd test PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and (fft_ or stft)" PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and grid_sample" ``` fft/stft: 290 passed, 4 xfailed (the existing all-device has_batch_rule xfails of fft.ihfft2 and fft.ihfftn), 0 failed. The 290 include the 28 fftshift and ifftshift tests, which were never skipped. grid_sample: 9 passed, 20 skipped, 13 xfailed, 0 xpassed, unchanged by this commit. lintrunner test/functorch/test_ops.py is clean. Authored with assistance from an AI coding assistant (Claude Code). Co-Authored-By: Claude Opus 5.5 <[email protected]>
tszulist-hbn
added a commit
to tszulist-hbn/pytorch
that referenced
this pull request
Oct 19, 2026
The previous commits skip 19 fft/stft ops on XPU in every functorch transform test, because in August they segfaulted workers at random on a local Data Center GPU Max 1550 (intel/torch-xpu-ops#4953). The skips date from the first commit of this stack, so XPU CI has never run these tests and the crash has not been seen on a CI machine (Data Center GPU Max 1100). With the skips removed, all 266 tests pass on an Arc B580 across four runs, one of them with two xdist workers as CI uses, with no crash. Intel's CI runs its fork of this file (test/xpu/functorch/test_ops_xpu.py) with no fft/stft skips. Removing them here lets XPU CI settle whether the crash is still there; if it is, the job log is the evidence pytorch#4953 lacks and the skips come back with it. xpu_unsupported now holds only the grid_sample xfail and stays the single name every XPU entry goes through. Test Plan: on an Arc B580: ``` cd test PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and (fft_ or stft)" PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and grid_sample" ``` fft/stft: 290 passed, 4 xfailed (the existing all-device has_batch_rule xfails of fft.ihfft2 and fft.ihfftn), 0 failed. The 290 include the 28 fftshift and ifftshift tests, which were never skipped. grid_sample: 9 passed, 20 skipped, 13 xfailed, 0 xpassed, unchanged by this commit. lintrunner test/functorch/test_ops.py is clean. Authored with assistance from an AI coding assistant (Claude Code). Co-Authored-By: Claude Opus 5.5 <[email protected]>
tszulist-hbn
added a commit
to tszulist-hbn/pytorch
that referenced
this pull request
Oct 19, 2026
The previous commits skip 19 fft/stft ops on XPU in every functorch transform test, because in August they segfaulted workers at random on a local Data Center GPU Max 1550 (intel/torch-xpu-ops#4953). The skips date from the first commit of this stack, so XPU CI has never run these tests and the crash has not been seen on a CI machine (Data Center GPU Max 1100). With the skips removed, all 266 tests pass on an Arc B580 across four runs, one of them with two xdist workers as CI uses, with no crash. Intel's CI runs its fork of this file (test/xpu/functorch/test_ops_xpu.py) with no fft/stft skips. Removing them here lets XPU CI settle whether the crash is still there; if it is, the job log is the evidence pytorch#4953 lacks and the skips come back with it. xpu_unsupported now holds only the grid_sample xfail and stays the single name every XPU entry goes through. Test Plan: on an Arc B580: ``` cd test PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and (fft_ or stft)" PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and grid_sample" ``` fft/stft: 290 passed, 4 xfailed (the existing all-device has_batch_rule xfails of fft.ihfft2 and fft.ihfftn), 0 failed. The 290 include the 28 fftshift and ifftshift tests, which were never skipped. grid_sample: 9 passed, 20 skipped, 13 xfailed, 0 xpassed, unchanged by this commit. lintrunner test/functorch/test_ops.py is clean. Authored with assistance from an AI coding assistant (Claude Code). Co-Authored-By: Claude Opus 5.5 <[email protected]>
pytorchmergebot
pushed a commit
to tszulist-hbn/pytorch
that referenced
this pull request
Oct 20, 2026
The previous commits skip 19 fft/stft ops on XPU in every functorch transform test, because in August they segfaulted workers at random on a local Data Center GPU Max 1550 (intel/torch-xpu-ops#4953). The skips date from the first commit of this stack, so XPU CI has never run these tests and the crash has not been seen on a CI machine (Data Center GPU Max 1100). With the skips removed, all 266 tests pass on an Arc B580 across four runs, one of them with two xdist workers as CI uses, with no crash. Intel's CI runs its fork of this file (test/xpu/functorch/test_ops_xpu.py) with no fft/stft skips. Removing them here lets XPU CI settle whether the crash is still there; if it is, the job log is the evidence pytorch#4953 lacks and the skips come back with it. xpu_unsupported now holds only the grid_sample xfail and stays the single name every XPU entry goes through. Test Plan: on an Arc B580: ``` cd test PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and (fft_ or stft)" PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and grid_sample" ``` fft/stft: 290 passed, 4 xfailed (the existing all-device has_batch_rule xfails of fft.ihfft2 and fft.ihfftn), 0 failed. The 290 include the 28 fftshift and ifftshift tests, which were never skipped. grid_sample: 9 passed, 20 skipped, 13 xfailed, 0 xpassed, unchanged by this commit. lintrunner test/functorch/test_ops.py is clean. Authored with assistance from an AI coding assistant (Claude Code). Co-Authored-By: Claude Opus 5.5 <[email protected]>
tszulist-hbn
added a commit
to tszulist-hbn/pytorch
that referenced
this pull request
Oct 20, 2026
The previous commits skip 19 fft/stft ops on XPU in every functorch transform test, because in August they segfaulted workers at random on a local Data Center GPU Max 1550 (intel/torch-xpu-ops#4953). The skips date from the first commit of this stack, so XPU CI has never run these tests and the crash has not been seen on a CI machine (Data Center GPU Max 1100). With the skips removed, all 266 tests pass on an Arc B580 across four runs, one of them with two xdist workers as CI uses, with no crash. Intel's CI runs its fork of this file (test/xpu/functorch/test_ops_xpu.py) with no fft/stft skips. Removing them here lets XPU CI settle whether the crash is still there; if it is, the job log is the evidence pytorch#4953 lacks and the skips come back with it. xpu_unsupported now holds only the grid_sample xfail and stays the single name every XPU entry goes through. Test Plan: on an Arc B580: ``` cd test PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and (fft_ or stft)" PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and grid_sample" ``` fft/stft: 290 passed, 4 xfailed (the existing all-device has_batch_rule xfails of fft.ihfft2 and fft.ihfftn), 0 failed. The 290 include the 28 fftshift and ifftshift tests, which were never skipped. grid_sample: 9 passed, 20 skipped, 13 xfailed, 0 xpassed, unchanged by this commit. lintrunner test/functorch/test_ops.py is clean. Authored with assistance from an AI coding assistant (Claude Code). Co-Authored-By: Claude Opus 5.5 <[email protected]>
tszulist-hbn
added a commit
to tszulist-hbn/pytorch
that referenced
this pull request
Oct 20, 2026
The previous commits skip 19 fft/stft ops on XPU in every functorch transform test, because in August they segfaulted workers at random on a local Data Center GPU Max 1550 (intel/torch-xpu-ops#4953). The skips date from the first commit of this stack, so XPU CI has never run these tests and the crash has not been seen on a CI machine (Data Center GPU Max 1100). With the skips removed, all 266 tests pass on an Arc B580 across four runs, one of them with two xdist workers as CI uses, with no crash. Intel's CI runs its fork of this file (test/xpu/functorch/test_ops_xpu.py) with no fft/stft skips. Removing them here lets XPU CI settle whether the crash is still there; if it is, the job log is the evidence pytorch#4953 lacks and the skips come back with it. xpu_unsupported now holds only the grid_sample xfail and stays the single name every XPU entry goes through. Test Plan: on an Arc B580: ``` cd test PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and (fft_ or stft)" PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and grid_sample" ``` fft/stft: 290 passed, 4 xfailed (the existing all-device has_batch_rule xfails of fft.ihfft2 and fft.ihfftn), 0 failed. The 290 include the 28 fftshift and ifftshift tests, which were never skipped. grid_sample: 9 passed, 20 skipped, 13 xfailed, 0 xpassed, unchanged by this commit. lintrunner test/functorch/test_ops.py is clean. Authored with assistance from an AI coding assistant (Claude Code). Co-Authored-By: Claude Opus 5.5 <[email protected]>
tszulist-hbn
added a commit
to tszulist-hbn/pytorch
that referenced
this pull request
Oct 20, 2026
The previous commits skip 19 fft/stft ops on XPU in every functorch transform test, because in August they segfaulted workers at random on a local Data Center GPU Max 1550 (intel/torch-xpu-ops#4953). The skips date from the first commit of this stack, so XPU CI has never run these tests and the crash has not been seen on a CI machine (Data Center GPU Max 1100). With the skips removed, all 266 tests pass on an Arc B580 across four runs, one of them with two xdist workers as CI uses, with no crash. Intel's CI runs its fork of this file (test/xpu/functorch/test_ops_xpu.py) with no fft/stft skips. Removing them here lets XPU CI settle whether the crash is still there; if it is, the job log is the evidence pytorch#4953 lacks and the skips come back with it. xpu_unsupported now holds only the grid_sample xfail and stays the single name every XPU entry goes through. Test Plan: on an Arc B580: ``` cd test PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and (fft_ or stft)" PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and grid_sample" ``` fft/stft: 290 passed, 4 xfailed (the existing all-device has_batch_rule xfails of fft.ihfft2 and fft.ihfftn), 0 failed. The 290 include the 28 fftshift and ifftshift tests, which were never skipped. grid_sample: 9 passed, 20 skipped, 13 xfailed, 0 xpassed, unchanged by this commit. lintrunner test/functorch/test_ops.py is clean. Authored with assistance from an AI coding assistant (Claude Code). Co-Authored-By: Claude Opus 5.5 <[email protected]>
tszulist-hbn
added a commit
to tszulist-hbn/pytorch
that referenced
this pull request
Oct 20, 2026
The previous commits skip 19 fft/stft ops on XPU in every functorch transform test, because in August they segfaulted workers at random on a local Data Center GPU Max 1550 (intel/torch-xpu-ops#4953). The skips date from the first commit of this stack, so XPU CI has never run these tests and the crash has not been seen on a CI machine (Data Center GPU Max 1100). With the skips removed, all 266 tests pass on an Arc B580 across four runs, one of them with two xdist workers as CI uses, with no crash. Intel's CI runs its fork of this file (test/xpu/functorch/test_ops_xpu.py) with no fft/stft skips. Removing them here lets XPU CI settle whether the crash is still there; if it is, the job log is the evidence pytorch#4953 lacks and the skips come back with it. xpu_unsupported now holds only the grid_sample xfail and stays the single name every XPU entry goes through. Test Plan: on an Arc B580: ``` cd test PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and (fft_ or stft)" PYTORCH_TESTING_DEVICE_ONLY_FOR=xpu python -m pytest functorch/test_ops.py \ -p no:randomly -n 2 -q -rfEX -k "TestOperatorsDeviceXPU and grid_sample" ``` fft/stft: 290 passed, 4 xfailed (the existing all-device has_batch_rule xfails of fft.ihfft2 and fft.ihfftn), 0 failed. The 290 include the 28 fftshift and ifftshift tests, which were never skipped. grid_sample: 9 passed, 20 skipped, 13 xfailed, 0 xpassed, unchanged by this commit. lintrunner test/functorch/test_ops.py is clean. Authored with assistance from an AI coding assistant (Claude Code). Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
… on LHS.