fix: fixed get_input_embeddings method
Browse files- modeling_bert.py +1 -1
modeling_bert.py
CHANGED
@@ -460,7 +460,7 @@ class BertForPreTraining(BertPreTrainedModel):
|
|
460 |
self.cls.predictions.decoder.weight = self.bert.embeddings.word_embeddings.weight
|
461 |
|
462 |
def get_input_embeddings(self):
|
463 |
-
return self.embeddings.word_embeddings
|
464 |
|
465 |
def forward(
|
466 |
self,
|
|
|
460 |
self.cls.predictions.decoder.weight = self.bert.embeddings.word_embeddings.weight
|
461 |
|
462 |
def get_input_embeddings(self):
|
463 |
+
return self.bert.embeddings.word_embeddings
|
464 |
|
465 |
def forward(
|
466 |
self,
|