Skip to content

Commit

Permalink
Fix typo in examples.rst (DLR-RM#1962)
Browse files Browse the repository at this point in the history
The variable `env` is not defined. The gym env we want to change is `vec_env`
  • Loading branch information
chsahit authored and friedeggs committed Jul 22, 2024
1 parent 7c173aa commit e2ade94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ will compute a running average and standard deviation of input features (it can
log_dir = "/tmp/"
model.save(log_dir + "ppo_halfcheetah")
stats_path = os.path.join(log_dir, "vec_normalize.pkl")
env.save(stats_path)
vec_env.save(stats_path)
# To demonstrate loading
del model, vec_env
Expand Down

0 comments on commit e2ade94

Please sign in to comment.