From 3e3010b65e5e70b62422022f4a745217f9c66ff5 Mon Sep 17 00:00:00 2001 From: Fredo Guan Date: Sun, 8 Jan 2023 12:35:08 -0800 Subject: [PATCH] Update metaformers.py --- timm/models/metaformers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timm/models/metaformers.py b/timm/models/metaformers.py index 2e6a59af..e6c12d7f 100644 --- a/timm/models/metaformers.py +++ b/timm/models/metaformers.py @@ -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)