tcapelle commited on
Commit
932c0ff
1 Parent(s): 3bebd19

Upload model

Browse files
Files changed (1) hide show
  1. modelling_deberta_multi.py +2 -1
modelling_deberta_multi.py CHANGED
@@ -27,4 +27,5 @@ class MultiHeadDebertaForSequenceClassificationModel(DebertaV2PreTrainedModel):
27
  head(self.dropout(sequence_output[:, 0, :])) for head in self.heads
28
  ]
29
  logits = torch.stack(logits_list, dim=1)
30
- return {"logits": logits}
 
 
27
  head(self.dropout(sequence_output[:, 0, :])) for head in self.heads
28
  ]
29
  logits = torch.stack(logits_list, dim=1)
30
+ outputs.logits = logits
31
+ return outputs