emanuelaboros commited on
Commit
05327a7
·
1 Parent(s): 87eed22

lets try to change the pipeline

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