Commit
·
c359274
1
Parent(s):
f5771b3
Fix imports for LSG code: explicit BERT import + import math + logger
Browse files- modeling_lsg_bert.py +3 -3
modeling_lsg_bert.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
from logging import warn
|
2 |
from transformers.models.bert.modeling_bert import (
|
3 |
-
BertPreTrainedModel,
|
4 |
BertEmbeddings,
|
5 |
BertModel,
|
6 |
BertForPreTraining,
|
@@ -10,10 +9,11 @@ from transformers.models.bert.modeling_bert import (
|
|
10 |
BertForMultipleChoice,
|
11 |
BertForTokenClassification,
|
12 |
BertForQuestionAnswering,
|
13 |
-
|
14 |
-
BertPooler,
|
15 |
BertEncoder,
|
16 |
BertLayer,
|
|
|
|
|
17 |
)
|
18 |
import torch
|
19 |
import torch.nn as nn
|
|
|
1 |
from logging import warn
|
2 |
from transformers.models.bert.modeling_bert import (
|
|
|
3 |
BertEmbeddings,
|
4 |
BertModel,
|
5 |
BertForPreTraining,
|
|
|
9 |
BertForMultipleChoice,
|
10 |
BertForTokenClassification,
|
11 |
BertForQuestionAnswering,
|
12 |
+
BertPreTrainedModel,
|
|
|
13 |
BertEncoder,
|
14 |
BertLayer,
|
15 |
+
BertPooler,
|
16 |
+
BertSelfOutput,
|
17 |
)
|
18 |
import torch
|
19 |
import torch.nn as nn
|