numb3r3 commited on
Commit
0be5eb2
1 Parent(s): 391704c

fix: add missing module

Browse files
Files changed (1) hide show
  1. modeling_xlm_roberta.py +1 -0
modeling_xlm_roberta.py CHANGED
@@ -944,6 +944,7 @@ class XLMRobertaForSequenceClassification(XLMRobertaPreTrainedModel):
944
  )
945
  .float()
946
  )
 
947
  all_scores.extend(scores.cpu().numpy().tolist())
948
 
949
  if len(all_scores) == 1:
 
944
  )
945
  .float()
946
  )
947
+ scores = torch.sigmoid(scores)
948
  all_scores.extend(scores.cpu().numpy().tolist())
949
 
950
  if len(all_scores) == 1: