MikhailPugachev commited on
Commit
c38b845
·
1 Parent(s): 8aad65b

Исправлен путь к модели

Browse files
Files changed (1) hide show
  1. model_SingleLabelClassifier.py +1 -1
model_SingleLabelClassifier.py CHANGED
@@ -25,7 +25,7 @@ class SingleLabelClassifier(nn.Module):
25
  token_type_ids=token_type_ids,
26
  return_dict=True
27
  )
28
- pooled_output = outputs.pooler_output
29
  x = self.intermediate(pooled_output)
30
  x = self.norm(x)
31
  x = self.activation(x)
 
25
  token_type_ids=token_type_ids,
26
  return_dict=True
27
  )
28
+ pooled_output = outputs.last_hidden_state[:, 0]
29
  x = self.intermediate(pooled_output)
30
  x = self.norm(x)
31
  x = self.activation(x)