fix efficientvit_msra pool

This commit is contained in:
方曦 2023-08-02 14:40:01 +08:00
parent 43443f64eb
commit e8fb866ccf

View File

@ -384,6 +384,7 @@ class EfficientViTMSRA(nn.Module):
return x
def forward_head(self, x, pre_logits: bool = False):
x = self.global_pool(x)
return x if pre_logits else self.head(x)
def forward(self, x):