[rllib] Upgrade to OpenAI Gym 0.10.3 (#1601)

This commit is contained in:
butchcom
2018-03-06 08:31:02 +00:00
committed by Richard Liaw
parent 162d063f0d
commit 936bebef99
11 changed files with 63 additions and 49 deletions
+1 -2
View File
@@ -196,8 +196,7 @@ def _env_runner(env, policy, num_local_steps, horizon, obs_filter):
"""
last_observation = obs_filter(env.reset())
try:
horizon = horizon if horizon else env.spec.tags.get(
"wrapper_config.TimeLimit.max_episode_steps")
horizon = horizon if horizon else env.spec.max_episode_steps
except Exception:
print("Warning, no horizon specified, assuming infinite")
if not horizon: