mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Merge pull request #1918 from Mingosnake/fix-efficientformerv2-typo
Fix typo in efficientformer_v2
This commit is contained in:
commit
24fc720d34
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user