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

share_policy置False时出错 #10

Open
ljjhhh opened this issue Jan 10, 2023 · 1 comment
Open

share_policy置False时出错 #10

ljjhhh opened this issue Jan 10, 2023 · 1 comment

Comments

@ljjhhh
Copy link

ljjhhh commented Jan 10, 2023

报错定位于runner/separated/env_runner.py中的collcet函数中的
actions = np.array(actions).transpose(1, 0, 2)
初步排查发现在这句代码上面的循环中,当agent_id取1时,生成的动作的shape与agent_id取0时不同

@ljjhhh
Copy link
Author

ljjhhh commented Jan 10, 2023

发现原因,action_space分别为Discrete,MultiDiscrete2,MultiDiscrete3……,使得后面智能体的输出的动作维度错误
解决此问题需要修改envs/env_discrete.py中生成action_space数组的逻辑

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