Skip to content

Commit 271e5d3

Browse files
author
Svetlana Karslioglu
authored
Update intermediate_source/coding_ddpg.py
1 parent d756188 commit 271e5d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intermediate_source/coding_ddpg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
device = (
7979
torch.device("cpu") if torch.cuda.device_count() == 0 else torch.device("cuda:0")
8080
)
81-
collector_device = torch.device("cpu")
81+
collector_device = torch.device("cpu") # Change the device to ``cuda`` to use CUDA
8282

8383
###############################################################################
8484
# TorchRL :class:`~torchrl.objectives.LossModule`

0 commit comments

Comments
 (0)