Skip to content

Commit 12e06c2

Browse files
Chao1Hanguangyey
authored andcommitted
Update test/distributed/checkpoint/_experimental/test_staging.py
Co-authored-by: Yu, Guangye <106960996+guangyey@users.noreply.github.com>
1 parent b804495 commit 12e06c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/distributed/checkpoint/_experimental/test_staging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def test_different_option_combinations(self) -> None:
120120
use_pinned_memory=torch.cuda.is_available(),
121121
use_shared_memory=False,
122122
use_async_staging=False,
123-
use_non_blocking_copy=torch.cuda.is_available(),
123+
use_non_blocking_copy=torch.accelerator.is_available(),
124124
)
125125
)
126126

0 commit comments

Comments
 (0)