Markus28 commited on
Commit
7e06371
1 Parent(s): bb281f0

fix: fixed get_input_embeddings method

Browse files
Files changed (1) hide show
  1. 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,