Commit
·
87eed22
1
Parent(s):
5a14ece
lets try to change the pipeline
Browse files- modeling_stacked.py +1 -1
modeling_stacked.py
CHANGED
|
@@ -80,7 +80,7 @@ class ExtendedMultitaskModelForTokenClassification(PreTrainedModel):
|
|
| 80 |
|
| 81 |
@property
|
| 82 |
def device(self):
|
| 83 |
-
return
|
| 84 |
|
| 85 |
@classmethod
|
| 86 |
def from_pretrained(cls, *args, **kwargs):
|
|
|
|
| 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):
|