Spaces:
Running
Running
app fixes_v4
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ class DebertPaperClassifier(torch.nn.Module):
|
|
57 |
torch.nn.Linear(512, num_labels)
|
58 |
)
|
59 |
|
60 |
-
self._init_weights()
|
61 |
if class_weights is not None:
|
62 |
self.loss_fct = torch.nn.BCEWithLogitsLoss(weight=class_weights.to(device))
|
63 |
else:
|
|
|
57 |
torch.nn.Linear(512, num_labels)
|
58 |
)
|
59 |
|
60 |
+
#self._init_weights()
|
61 |
if class_weights is not None:
|
62 |
self.loss_fct = torch.nn.BCEWithLogitsLoss(weight=class_weights.to(device))
|
63 |
else:
|