Fix typo in examples.rst (#1962)

The variable `env` is not defined. The gym env we want to change is `vec_env`
This commit is contained in:
Sahit Chintalapudi 2024-07-05 09:00:48 -04:00 committed by GitHub
parent 24ebf1a1df
commit 0eebde7ca1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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