Action dim

This commit is contained in:
Shangtong Zhang
2017-11-09 16:38:42 -07:00
parent e1e6446728
commit 41627588fb
2 changed files with 5 additions and 4 deletions
+1
View File
@@ -72,6 +72,7 @@ class PixelAtari(BasicTask):
env = FireResetEnv(env)
env = ProcessFrame(env, frame_size)
self.env = ClippedRewardsWrapper(env)
self.action_dim = self.env.action_space.n
def normalize_state(self, state):
return np.asarray(state, dtype=np.float32) / 255.0