bugfix in deepsets

This commit is contained in:
Johannes Fischer
2021-07-22 18:44:12 +02:00
parent 91d052445e
commit 1c22bd6111
4 changed files with 8 additions and 3 deletions

View File

@@ -42,6 +42,6 @@ class DeepSetsPolicy(Policy, nn.Module):
# cat path_x, path_y to tensor of dim (B, 2*P)
path = torch.cat([sample["path_x"], sample["path_y"]], dim=-1)
path = self.path_net(path)
x = torch.cat([ego, relative, path])
x = torch.cat([ego, relative, path], dim=-1)
x = self.head(x)
return x