Fix typo in efficientformer_v2

This commit is contained in:
Minseo Kang 2023-08-16 03:29:01 +09:00
parent da75cdd212
commit 7938f28542

View File

@ -232,7 +232,7 @@ class Attention2dDownsample(torch.nn.Module):
self.attention_biases = nn.Parameter(torch.zeros(num_heads, self.N))
k_pos = torch.stack(torch.meshgrid(torch.arange(
self.resolution[1]),
self.resolution[0]),
torch.arange(self.resolution[1]))).flatten(1)
q_pos = torch.stack(torch.meshgrid(
torch.arange(0, self.resolution[0], step=2),