Skip to content

Commit

Permalink
another bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaustubh Mani committed Sep 25, 2023
1 parent 3281b23 commit 4813f4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cleanrl/dqn.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,8 @@ def get_random_action():
if "episode" not in info:
continue


ep_cost = 0
last_step = global_step
print(f"global_step={global_step}, episodic_return={info['episode']['r']}")
writer.add_scalar("charts/episodic_return", info["episode"]["r"], global_step)
Expand Down

0 comments on commit 4813f4e

Please sign in to comment.