mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Update metaformers.py
This commit is contained in:
parent
0a9c2607a0
commit
a73e464bc8
@ -749,6 +749,7 @@ class MetaFormer(nn.Module):
|
|||||||
return x
|
return x
|
||||||
|
|
||||||
x = self.global_pool(x)
|
x = self.global_pool(x)
|
||||||
|
x = x.flatten()
|
||||||
x = self.norm(x)
|
x = self.norm(x)
|
||||||
# (B, H, W, C) -> (B, C)
|
# (B, H, W, C) -> (B, C)
|
||||||
x = self.head(x)
|
x = self.head(x)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user