Skip to content

Commit d196fa5

Browse files
committed
Fix last min torchscript regression in nfnet changes
1 parent 33ada0c commit d196fa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

timm/models/nfnet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def forward_features(self, x):
445445
x = self.final_act(x)
446446
return x
447447

448-
def forward_head(self, x, pre_logits=False):
448+
def forward_head(self, x, pre_logits: bool = False):
449449
return self.head(x, pre_logits=pre_logits) if pre_logits else self.head(x)
450450

451451
def forward(self, x):

0 commit comments

Comments
 (0)