You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TorchDiagGaussian doesn’t handle multiple actions correctly. As a result, training PPO with Pytorch will crash when the action space has more than 1 action. Here’s minimal reproduction script:
Had the same problem, so i updated to the 0.8.3 version. Now the bug happens in the GAE calculation:
File "/home/spider-sense01/PycharmProjects/multi-agent-emergence-environments/.venv/lib/python3.6/site-packages/ray/rllib/agents/ppo/ppo_torch_policy.py", line 105, in init
vf_loss_coeff * vf_loss - entropy_coeff * curr_entropy)
RuntimeError: The size of tensor a (512) must match the size of tensor b (2) at non-singleton dimension 1
Activity
sven1977 commentedon Mar 2, 2020
Thanks for filing this. Taking a look ...
sven1977 commentedon Mar 2, 2020
Please try this PR for a fix. This will go into master within the next few days.
#7398
soundway commentedon Mar 4, 2020
This works. Thanks for the quick fix!
omri-axon-vision commentedon Mar 30, 2020
Had the same problem, so i updated to the 0.8.3 version. Now the bug happens in the GAE calculation:
File "/home/spider-sense01/PycharmProjects/multi-agent-emergence-environments/.venv/lib/python3.6/site-packages/ray/rllib/agents/ppo/ppo_torch_policy.py", line 105, in init
vf_loss_coeff * vf_loss - entropy_coeff * curr_entropy)
RuntimeError: The size of tensor a (512) must match the size of tensor b (2) at non-singleton dimension 1