Skip to content

Commit dbfd265

Browse files
author
Svetlana Karslioglu
authored
Update changing_default_device.py
1 parent 6405db4 commit dbfd265

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
@@ -4,7 +4,7 @@
44
55
It is common practice to write PyTorch code in a device-agnostic way,
66
and then switch between CPU and CUDA depending on what hardware is available.
7-
Typically, to do this you might have used if-statements and cuda() calls
7+
Typically, to do this you might have used if-statements and ``cuda()`` calls
88
to do this:
99
1010
"""

0 commit comments

Comments
 (0)