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
  • Loading branch information
DobromirM authored Apr 2, 2024
1 parent 2c485dd commit 2461eb2
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 @@ -774,7 +774,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,
reduction: str = None,
Expand Down Expand Up @@ -1007,7 +1007,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,
reduction: str = None,
Expand Down

0 comments on commit 2461eb2

Please sign in to comment.