mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
fix efficientvit_msra pool
This commit is contained in:
parent
43443f64eb
commit
e8fb866ccf
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user