Skip to content

Commit

Permalink
Fix deterministic policy evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejwolczyk authored and mergify-bot committed Jul 3, 2020
1 parent ea2b0ee commit f148dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/garage/sampler/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def rollout(env,
while path_length < (max_path_length or np.inf):
o = env.observation_space.flatten(o)
a, agent_info = agent.get_action(o)
if deterministic and 'mean' in agent_infos:
if deterministic and 'mean' in agent_info:
a = agent_info['mean']
next_o, r, d, env_info = env.step(a)
observations.append(o)
Expand Down

0 comments on commit f148dc6

Please sign in to comment.