Skip to content
Snippets Groups Projects
Commit 7ccb7f4a authored by sicer's avatar sicer
Browse files

fix bugs of dcg

parent 08dcdf36
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ class DCGnoshareMAC (DeepCoordinationGraphMAC):
# Without decomposition, the payoff_fun output must only be reshaped
output = output.view(*output.shape[:-1], n, n)
# The output of the backward messages must be transposed
output[1] = output[1].transpose(dim0=-2, dim1=-1)
output[1] = output[1].clone().transpose(dim0=-2, dim1=-1)
# Compute the symmetric average of each edge with it's flipped counterpart
return output.mean(dim=0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment