nkigumnov commited on
Commit
27e6827
1 Parent(s): 4dba23e

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -1
model.py CHANGED
@@ -46,7 +46,7 @@ class UnionModel(nn.Module):
46
  param.requires_grad = False
47
 
48
  self.bert_model.pooler = nn.Linear(in_features=768, out_features=256)
49
- self.bert_model.to('cuda')
50
 
51
  self.category_head = CategoryHead()
52
  self.sentiment_head = SentimentHead()
 
46
  param.requires_grad = False
47
 
48
  self.bert_model.pooler = nn.Linear(in_features=768, out_features=256)
49
+ self.bert_model.to('cpu')
50
 
51
  self.category_head = CategoryHead()
52
  self.sentiment_head = SentimentHead()