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
Does it mean we have 4 dimension in query after torch.cat implements? I am confused with it. Usually, query should have 3 dimension after torch.cat method. If possible, please explain it, thanks
The text was updated successfully, but these errors were encountered:
in forward method,
query = torch.cat(torch.split(query, self.head_size, dim=-1), dim=0)
key = torch.cat(torch.split(key, self.head_size, dim=-1), dim=0)
value = torch.cat(torch.split(value, self.head_size, dim=-1), dim=0)
query = query.permute((0, 2, 1, 3))
Does it mean we have 4 dimension in query after torch.cat implements? I am confused with it. Usually, query should have 3 dimension after torch.cat method. If possible, please explain it, thanks
The text was updated successfully, but these errors were encountered: