From 0eebde7ca129632e2d256b26eb405fab481804d0 Mon Sep 17 00:00:00 2001 From: Sahit Chintalapudi Date: Fri, 5 Jul 2024 09:00:48 -0400 Subject: [PATCH] Fix typo in examples.rst (#1962) The variable `env` is not defined. The gym env we want to change is `vec_env` --- docs/guide/examples.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/examples.rst b/docs/guide/examples.rst index 67a4777..9f54231 100644 --- a/docs/guide/examples.rst +++ b/docs/guide/examples.rst @@ -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