mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Fix last min torchscript regression in nfnet changes
This commit is contained in:
parent
33ada0cbca
commit
d196fa536d
@ -445,7 +445,7 @@ class NormFreeNet(nn.Module):
|
||||
x = self.final_act(x)
|
||||
return x
|
||||
|
||||
def forward_head(self, x, pre_logits=False):
|
||||
def forward_head(self, x, pre_logits: bool = False):
|
||||
return self.head(x, pre_logits=pre_logits) if pre_logits else self.head(x)
|
||||
|
||||
def forward(self, x):
|
||||
|
Loading…
x
Reference in New Issue
Block a user