Skip to content

Commit

Permalink
[BugFix] Set default value for normalize_advantage to False. (#2050)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2461eb2)
  • Loading branch information
DobromirM authored and vmoens committed Apr 7, 2024
1 parent 0170693 commit 6387072
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torchrl/objectives/ppo.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ def __init__(
entropy_coef: float = 0.01,
critic_coef: float = 1.0,
loss_critic_type: str = "smooth_l1",
normalize_advantage: bool = True,
normalize_advantage: bool = False,
gamma: float = None,
separate_losses: bool = False,
**kwargs,
Expand Down Expand Up @@ -903,7 +903,7 @@ def __init__(
entropy_coef: float = 0.01,
critic_coef: float = 1.0,
loss_critic_type: str = "smooth_l1",
normalize_advantage: bool = True,
normalize_advantage: bool = False,
gamma: float = None,
separate_losses: bool = False,
**kwargs,
Expand Down

0 comments on commit 6387072

Please sign in to comment.