Spaces:
Running
Running
ThanaritKanjanametawat
commited on
Commit
·
cf62d27
1
Parent(s):
57bafce
change the device to cpu only
Browse files- ModelDriver.py +1 -1
ModelDriver.py
CHANGED
@@ -2,7 +2,7 @@ from transformers import RobertaTokenizer, RobertaForSequenceClassification, Rob
|
|
2 |
import torch
|
3 |
import torch.nn as nn
|
4 |
|
5 |
-
device = torch.device("
|
6 |
class MLP(nn.Module):
|
7 |
def __init__(self, input_dim):
|
8 |
super(MLP, self).__init__()
|
|
|
2 |
import torch
|
3 |
import torch.nn as nn
|
4 |
|
5 |
+
device = torch.device("cpu")
|
6 |
class MLP(nn.Module):
|
7 |
def __init__(self, input_dim):
|
8 |
super(MLP, self).__init__()
|