We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d756188 commit 271e5d3Copy full SHA for 271e5d3
intermediate_source/coding_ddpg.py
@@ -78,7 +78,7 @@
78
device = (
79
torch.device("cpu") if torch.cuda.device_count() == 0 else torch.device("cuda:0")
80
)
81
-collector_device = torch.device("cpu")
+collector_device = torch.device("cpu") # Change the device to ``cuda`` to use CUDA
82
83
###############################################################################
84
# TorchRL :class:`~torchrl.objectives.LossModule`
0 commit comments