parent
4fd826761c
commit
205698dd66
5
tianshou/env/atari.py
vendored
5
tianshou/env/atari.py
vendored
@ -95,8 +95,9 @@ class preprocessing(object):
|
||||
axis=-1)
|
||||
if self.count >= self.max_episode_steps:
|
||||
terminal = True
|
||||
self.terminal = terminal
|
||||
return observation, total_reward, is_terminal, info
|
||||
else:
|
||||
terminal = False
|
||||
return observation, total_reward, (terminal or is_terminal), info
|
||||
|
||||
def _grayscale_obs(self, output):
|
||||
self.env.ale.getScreenGrayscale(output)
|
||||
|
Loading…
x
Reference in New Issue
Block a user