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>
Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
  • Loading branch information
ArturNiederfahrenhorst authored and arvind-chandra committed Aug 31, 2023
1 parent 480cd26 commit 886c92a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rllib/evaluation/env_runner_v2.py
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 886c92a

Please sign in to comment.