Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Sep 11, 2024
1 parent 5eb1892 commit 231908c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_nn.py
Original file line number Diff line number Diff line change
Expand Up @@ -3699,7 +3699,7 @@ def __setattr__(self, key, value):
@pytest.mark.skipif(not torch.cuda.is_available(), reason="CUDA is not available")
@pytest.mark.parametrize("compiled", [True, False])
class TestCudaGraphs:
@pytest.fixture(scope="class")
@pytest.fixture(scope="class", autouse=True)
def _set_cuda_device(self):
device = torch.get_default_device()
torch.set_default_device("cuda:0")
Expand Down

0 comments on commit 231908c

Please sign in to comment.