Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mwalmsley committed Feb 27, 2024
1 parent f48f5ec commit 797b748
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zoobot/pytorch/training/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,7 @@ def __init__(self, input_dim, output_dim, dropout_prob=0.5, activation=None):
self.output_dim = output_dim
self.dropout = torch.nn.Dropout(p=dropout_prob)
self.linear = torch.nn.Linear(input_dim, output_dim)
if activation is not None:
self.activation = activation
self.activation = activation

def forward(self, x):
# returns logits, as recommended for CrossEntropy loss
Expand Down

0 comments on commit 797b748

Please sign in to comment.