8000 Add torch.accelerator.device_index as accelerator's device switch context by guangyey · Pull Request #148864 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

Add torch.accelerator.device_index as accelerator's device switch context #148864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 22 commits into from
Closed
Prev Previous commit
Next Next commit
Update
[ghstack-poisoned]
  • Loading branch information
guangyey committed Apr 23, 2025
commit dad33cc8bce10bbdad81227875e3b2bf26d56057
1 change: 0 additions & 1 deletion test/test_accelerator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
warning: Selection `RUF030` has no effect because preview is not enabled.
# Owner(s): ["module: tests"]

import sys
Expand Down
1 change: 0 additions & 1 deletion test/test_cuda.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
warning: Selection `RUF030` has no effect because preview is not enabled.
# Owner(s): ["module: cuda"]
# ruff: noqa: F841

Expand Down
1 change: 0 additions & 1 deletion test/test_xpu.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
warning: Selection `RUF030` has no effect because preview is not enabled.
# Owner(s): ["module: intel"]

import subprocess
Expand Down
Loading
0