[rllib] test all combinations of {obs_space} x {action_space} (#1449)

This commit is contained in:
Eric Liang
2018-01-24 11:03:43 -08:00
committed by Richard Liaw
parent 5acc98e629
commit 1d2a28ab07
10 changed files with 187 additions and 18 deletions
+1 -1
View File
@@ -200,8 +200,8 @@ def _env_runner(env, policy, num_local_steps, horizon, obs_filter):
"wrapper_config.TimeLimit.max_episode_steps")
except Exception:
print("Warning, no horizon specified, assuming infinite")
if not horizon:
horizon = 999999
assert horizon > 0
if hasattr(policy, "get_initial_features"):
last_features = policy.get_initial_features()
else: