Update metaformers.py

This commit is contained in:
Fredo Guan 2023-01-31 17:03:25 -08:00
parent 8f70650295
commit 1fd5f7672d

View File

@ -573,7 +573,7 @@ class MetaFormer(nn.Module):
return x if pre_logits else self.head.fc(x)
def forward_features(self, x):
x = self.patch_embed(x)
x = self.stem(x)
x = self.stages(x)
x = self.norm_pre(x)
return x