Skip to content

Commit 805918c

Browse files
author
Vincent Moens
authored
[BugFix] Add keys to GAE in PPO/A2C (#1618)
1 parent f121701 commit 805918c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

examples/a2c/a2c_atari.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def main(cfg: "DictConfig"): # noqa: F821
7676
)
7777

7878
# use end-of-life as done key
79+
adv_module.set_keys(done="end-of-life", terminated="end-of-life")
7980
loss_module.set_keys(done="end-of-life", terminated="end-of-life")
8081

8182
# Create optimizer

examples/ppo/ppo_atari.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def main(cfg: "DictConfig"): # noqa: F821
7979
)
8080

8181
# use end-of-life as done key
82+
adv_module.set_keys(done="end-of-life", terminated="end-of-life")
8283
loss_module.set_keys(done="end-of-life", terminated="end-of-life")
8384

8485
# Create optimizer

0 commit comments

Comments
 (0)