1
0
mirror of https://github.com/huggingface/pytorch-image-models.git synced 2025-06-03 15:01:08 +08:00

Update metaformers.py

This commit is contained in:
Fredo Guan 2023-01-12 11:13:17 -08:00
parent a73e464bc8
commit 7869dd6769

@ -749,7 +749,7 @@ class MetaFormer(nn.Module):
return x
x = self.global_pool(x)
x = x.flatten()
x = x.flatten(1)
x = self.norm(x)
# (B, H, W, C) -> (B, C)
x = self.head(x)