Skip to content

Commit

Permalink
Merge pull request #2305 from NightMachinery/patch-2
Browse files Browse the repository at this point in the history
mambaout.py: fixed bug
  • Loading branch information
rwightman authored Oct 16, 2024
2 parents 8cb2548 + ca20e10 commit a852318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timm/models/mambaout.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def __init__(
self.num_features = in_features
self.pre_logits = nn.Identity()

self.fc = nn.Linear(hidden_size, num_classes, bias=bias) if num_classes > 0 else nn.Identity()
self.fc = nn.Linear(self.num_features, num_classes, bias=bias) if num_classes > 0 else nn.Identity()
self.head_dropout = nn.Dropout(drop_rate)

def reset(self, num_classes: int, pool_type: Optional[str] = None, reset_other: bool = False):
Expand Down

0 comments on commit a852318

Please sign in to comment.