Skip to content

Commit 346a339

Browse files
committed
add test/prototype/test_parq.py
1 parent 73730e8 commit 346a339

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/prototype/test_parq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
torch_version_at_least,
5252
)
5353

54-
_DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
54+
_DEVICE = torch.device(torch.accelerator.current_accelerator().type if torch.accelerator.is_available() else "cpu")
5555

5656

5757
class M(nn.Module):

0 commit comments

Comments
 (0)