Skip to content

Commit

Permalink
Fix reward normalization arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
ikostrikov committed Feb 4, 2021
1 parent b25c006 commit b03eba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion a2c_ppo_acktr/envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def make_vec_envs(env_name,

if len(envs.observation_space.shape) == 1:
if gamma is None:
envs = VecNormalize(envs, ret=False)
envs = VecNormalize(envs, norm_reward=False)
else:
envs = VecNormalize(envs, gamma=gamma)

Expand Down

0 comments on commit b03eba0

Please sign in to comment.