Spaces:
Running
Running
Commit
·
c38b845
1
Parent(s):
8aad65b
Исправлен путь к модели
Browse files
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.
|
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)
|