Skip to content

Commit 5432bac

Browse files
author
maykulkarni
authored
Merge branch 'master' into patch-1
2 parents ee49d42 + 967d22b commit 5432bac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intermediate_source/reinforcement_q_learning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def optimize_model():
408408
# Compute a mask of non-final states and concatenate the batch elements
409409
# (a final state would've been the one after which simulation ended)
410410
non_final_mask = torch.tensor(tuple(map(lambda s: s is not None,
411-
batch.next_state)), device=device, dtype=torch.uint8)
411+
batch.next_state)), device=device, dtype=torch.bool)
412412
non_final_next_states = torch.cat([s for s in batch.next_state
413413
if s is not None])
414414
state_batch = torch.cat(batch.state)

0 commit comments

Comments
 (0)