emanuelaboros commited on
Commit
8c19df9
·
1 Parent(s): 4e298b5

lets try to change the pipeline

Browse files
Files changed (1) hide show
  1. modeling_stacked.py +4 -3
modeling_stacked.py CHANGED
@@ -79,9 +79,10 @@ class ExtendedMultitaskModelForTokenClassification(PreTrainedModel):
79
  extended_attention_mask = (1.0 - extended_attention_mask) * -10000.0
80
  return extended_attention_mask
81
 
82
- # @property
83
- # def device(self):
84
- # return torch.device("cuda" if torch.cuda.is_available() else "cpu")
 
85
 
86
  @classmethod
87
  def from_pretrained(cls, *args, **kwargs):
 
79
  extended_attention_mask = (1.0 - extended_attention_mask) * -10000.0
80
  return extended_attention_mask
81
 
82
+ @property
83
+ def device(self):
84
+ return torch.device("cpu")
85
+ # torch.device("cuda" if torch.cuda.is_available() else "cpu")
86
 
87
  @classmethod
88
  def from_pretrained(cls, *args, **kwargs):