Skip to content

Commit

Permalink
Removed softmax from johan_model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hzavadil98 authored Feb 5, 2025
1 parent d767754 commit 2c4db88
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions utils/models/johan_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,12 @@ def __init__(self, image_shape, num_classes):
self.fc2 = nn.Linear(77, 77)
self.fc3 = nn.Linear(77, 77)
self.fc4 = nn.Linear(77, num_classes)
self.softmax = nn.Softmax(dim=1)
self.relu = nn.ReLU()

def forward(self, x):
for layer in [self.fc1, self.fc2, self.fc3, self.fc4]:
x = layer(x)
x = self.relu(x)
x = self.softmax(x)
return x


Expand Down

0 comments on commit 2c4db88

Please sign in to comment.