Commit
·
7d0cd1a
1
Parent(s):
9d4b4dc
updated BertModel.__init__ call
Browse files- modeling_lsg_bert.py +1 -3
modeling_lsg_bert.py
CHANGED
@@ -1023,10 +1023,8 @@ class LSGBertModel(LSGBertPreTrainedModel, BertModel):
|
|
1023 |
|
1024 |
def __init__(self, config, add_pooling_layer=True):
|
1025 |
|
1026 |
-
# ensure your LSGBertModel inherits all the necessary fields introduced in the latest Transformers.
|
1027 |
-
BertModel.__init__(self, config, add_pooling_layer=add_pooling_layer)
|
1028 |
-
|
1029 |
LSGBertPreTrainedModel.__init__(self, config)
|
|
|
1030 |
self.config = config
|
1031 |
|
1032 |
self.embeddings = LSGBertEmbeddings(config)
|
|
|
1023 |
|
1024 |
def __init__(self, config, add_pooling_layer=True):
|
1025 |
|
|
|
|
|
|
|
1026 |
LSGBertPreTrainedModel.__init__(self, config)
|
1027 |
+
|
1028 |
self.config = config
|
1029 |
|
1030 |
self.embeddings = LSGBertEmbeddings(config)
|