Skip to content

Commit

Permalink
Fix typo in agent.py (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinhyeon Kim authored Nov 14, 2021
1 parent 1dc673d commit c1afc3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,7 @@ def get_drqn_loss(self, episode_no):
prev_h, prev_c = new_h, new_c
if step_no < self.replay_sample_update_from:
q_value = q_value.detach()
prev_h, prev_c = prev_h.detach(), prev_h.detach()
prev_h, prev_c = prev_h.detach(), prev_c.detach()
continue

with torch.no_grad():
Expand Down

0 comments on commit c1afc3c

Please sign in to comment.