Skip to content

Commit

Permalink
Update data_parallel_tutorial.py to remove cuda:0
Browse files Browse the repository at this point in the history
Removing cuda:0 from the comments
  • Loading branch information
prithviraj-maurya authored Nov 5, 2023
1 parent c9f86f6 commit 2821752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beginner_source/blitz/data_parallel_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.. code:: python
device = torch.device("cuda:0")
device = torch.device("cuda")
model.to(device)
Then, you can copy all your tensors to the GPU:
Expand Down

0 comments on commit 2821752

Please sign in to comment.