Update metaformers.py

pull/1647/head
Fredo Guan 2 years ago
parent a73e464bc8
commit 7869dd6769

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

Loading…
Cancel
Save