From 42741b7cdbe649480e76a82dc8d60b49e32969e1 Mon Sep 17 00:00:00 2001 From: Fredo Guan Date: Sat, 7 Jan 2023 21:38:34 -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 a7404cf9..656f6294 100644 --- a/timm/models/metaformers.py +++ b/timm/models/metaformers.py @@ -601,7 +601,7 @@ class MetaFormer(nn.Module): res_scale_init_value=res_scale_init_values[i], ) for j in range(depths[i])] ) - self.stages.append(stage) + stages.append(stage) cur += depths[i] self.stages = nn.Sequential(zip(*downsample_layers, *stages))