Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's the mean of timestep.observation.players? #302

Open
hilanzy opened this issue May 21, 2024 · 0 comments
Open

What's the mean of timestep.observation.players? #302

hilanzy opened this issue May 21, 2024 · 0 comments

Comments

@hilanzy
Copy link

hilanzy commented May 21, 2024

>>> dummy_env = envpool.make_dm(task_id="Pong-v5", num_envs=32)
>>> tmp = dummy_env.reset()
>>> tmp.observation.env_id
array([ 0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16,
       17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31],
      dtype=int32)
>>> tmp.observation.players
players(env_id=array([ 0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16,
       17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31],
      dtype=int32))

What's the mean of timestep.observation.players? Why env_id in players?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant