Update metaformers.py

pull/1647/head
Fredo Guan 2 years ago
parent cc8575e9d1
commit 3e3010b65e

@ -721,7 +721,7 @@ class MetaFormer(nn.Module):
if pre_logits:
return x
x = x.mean([1,2]) # TODO use adaptive pool instead of mean
x = x.mean([-1,-2]) # TODO use adaptive pool instead of mean
x = self.norm(x)
# (B, H, W, C) -> (B, C)
x = self.head(x)

Loading…
Cancel
Save