bvd757 commited on
Commit
e15e482
·
1 Parent(s): a0a0073

app fixes_v4

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: