Skip to content

Commit 617ff9f

Browse files
guangyeysvekars
andauthored
Update beginner_source/basics/buildmodel_tutorial.py
Co-authored-by: Svetlana Karslioglu <[email protected]>
1 parent dde7670 commit 617ff9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/basics/buildmodel_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# Get Device for Training
3434
# -----------------------
3535
# We want to be able to train our model on an `accelerator <https://pytorch.org/docs/stable/torch.html#accelerators>`
36-
# like CUDA, MPS, MTIA, or XPU. If the current accelerator is available, we will use it, otherwise we use the CPU.
36+
# such as CUDA, MPS, MTIA, or XPU. If the current accelerator is available, we will use it. Otherwise, we use the CPU.
3737

3838
device = torch.accelerator.current_accelerator().type if torch.accelerator.is_available() else "cpu"
3939
print(f"Using {device} device")

0 commit comments

Comments
 (0)