Skip to content

Commit ea42806

Browse files
authored
Update dqn_with_rnn_tutorial collector device
1 parent c19c199 commit ea42806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intermediate_source/dqn_with_rnn_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@
387387
# For the sake of efficiency, we're only running a few thousands iterations
388388
# here. In a real setting, the total number of frames should be set to 1M.
389389
#
390-
collector = SyncDataCollector(env, stoch_policy, frames_per_batch=50, total_frames=200)
390+
collector = SyncDataCollector(env, stoch_policy, frames_per_batch=50, total_frames=200, device=device)
391391
rb = TensorDictReplayBuffer(
392392
storage=LazyMemmapStorage(20_000), batch_size=4, prefetch=10
393393
)

0 commit comments

Comments
 (0)