A pytorch implementation of MADDPG (multi-agent deep deterministic policy gradient)
Hello, I encountered an issue when I try to run your code. I tried to find why it occurs but have no clue yet. Could you please take a look the error below? Appreciate. Traceback (most recent call last): File "<ipython-input-1-fdc860125727>", line 1, in <module> runfile('/home/zishun/pytorch-maddpg-master/main.py', wdir='/home/zishun/pytorch-maddpg-master') File "/home/zishun/anaconda3/lib/python3.6/site-packages/spyder/utils/site/sitecustomize.py", line 705, in runfile execfile(filename, namespace) File "/home/zishun/anaconda3/lib/python3.6/site-packages/spyder/utils/site/sitecustomize.py", line 102, in execfile exec(compile(f.read(), filename, 'exec'), namespace) File "/home/zishun/pytorch-maddpg-master/main.py", line 83, in <module> c_loss, a_loss = maddpg.update_policy() File "/home/zishun/pytorch-maddpg-master/MADDPG.py", line 111, in update_policy self.n_agents * self.n_actions)) RuntimeError: expand(torch.FloatTensor{[999, 1]}, size=[999]): the number of sizes provided (1) must be greater or equal to the number of dimensions in the tensor (2)
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by ZishunYu and has received 4 comments.