Skip to content

Commit 7ac3bdd

Browse files
author
Svetlana Karslioglu
authored
Update recipes_source/recipes/changing_default_device.py
Fix typo
1 parent f0c6e94 commit 7ac3bdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

recipes_source/recipes/changing_default_device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
print(mod.weight.device)
4444
print(mod(torch.randn(128, 20)).device)
4545

46-
# And then gloablly return it back to CPU
46+
# And then globally return it back to CPU
4747
torch.set_default_device('cpu')
4848

4949
################################################################

0 commit comments

Comments
 (0)