btarakcioglu
commited on
Commit
•
41143b7
1
Parent(s):
a3ba203
Fix: Added missing import for BertPreTrainedModel
Browse files
model.py
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
class CustomBertModel(BertPreTrainedModel):
|
2 |
def __init__(self, config):
|
3 |
super().__init__(config)
|
|
|
1 |
+
import torch
|
2 |
+
from torch import nn
|
3 |
+
from transformers import BertModel, BertPreTrainedModel
|
4 |
+
|
5 |
+
|
6 |
class CustomBertModel(BertPreTrainedModel):
|
7 |
def __init__(self, config):
|
8 |
super().__init__(config)
|