Skip to content

Commit f6945fb

Browse files
authored
Update train.py
remove the timelimitwrapper added by gym. Fixes dennybritz#66
1 parent b713713 commit f6945fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

PolicyGradient/a3c/train.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636

3737
def make_env(wrap=True):
3838
env = gym.envs.make(FLAGS.env)
39+
# remove the timelimitwrapper
40+
env = env.env
3941
if wrap:
4042
env = atari_helpers.AtariEnvWrapper(env)
4143
return env

0 commit comments

Comments
 (0)