MostoHF commited on
Commit
8b209d1
·
verified ·
1 Parent(s): 2794a6d

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -1
model.py CHANGED
@@ -9,7 +9,7 @@ class ClassificationModel(nn.Module):
9
  nn.ReLU(),
10
  nn.Dropout(0.3),
11
  nn.Linear(256, 8),
12
- nn.Softmax(dim=1)
13
  )
14
 
15
  def forward(self, input_ids, attention_mask):
 
9
  nn.ReLU(),
10
  nn.Dropout(0.3),
11
  nn.Linear(256, 8),
12
+ nn.LogSoftmax(dim=1)
13
  )
14
 
15
  def forward(self, input_ids, attention_mask):