From 5e37cb8e16abee2840124b6d35df4a0be5d9a29f Mon Sep 17 00:00:00 2001 From: Richard Liaw Date: Mon, 27 Nov 2017 17:52:25 -0800 Subject: [PATCH] Small PPO bug (#1265) --- python/ray/rllib/ppo/filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ray/rllib/ppo/filter.py b/python/ray/rllib/ppo/filter.py index d61306b45..bd424ebd3 100644 --- a/python/ray/rllib/ppo/filter.py +++ b/python/ray/rllib/ppo/filter.py @@ -128,7 +128,7 @@ class MeanStdFilter(object): else: # The unvectorized case. self.rs.push(x) - self.buffer.push(x[i]) + self.buffer.push(x) if self.demean: x = x - self.rs.mean if self.destd: