Skip to content

Commit

Permalink
[RLlib] Add agent index on first step in env runner v2 (ray-project#3…
Browse files Browse the repository at this point in the history
…7544)

Signed-off-by: Artur Niederfahrenhorst <attaismyname@googlemail.com>
  • Loading branch information
ArturNiederfahrenhorst authored Jul 28, 2023
1 parent 7c07659 commit 9a131db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rllib/evaluation/env_runner_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,7 @@ def __process_resetted_obs_for_eval(
SampleBatch.NEXT_OBS: obs,
SampleBatch.INFOS: infos,
SampleBatch.T: episode.length,
SampleBatch.AGENT_INDEX: episode.agent_index(agent_id),
},
)
for agent_id, obs in agents_obs
Expand Down

0 comments on commit 9a131db

Please sign in to comment.