Dan Fu commited on
Commit
6082b2d
1 Parent(s): 32e57e8
Files changed (1) hide show
  1. bert_layers.py +1 -1
bert_layers.py CHANGED
@@ -881,7 +881,7 @@ class BertForTextEncoding(BertPreTrainedModel):
881
  'If you want to use `BertForMaskedLM` make sure `config.is_decoder=False` for '
882
  'bi-directional self-attention.')
883
 
884
- self.bert = BertModel(config, add_pooling_layer=False)
885
 
886
  # Initialize weights and apply final processing
887
  self.post_init()
 
881
  'If you want to use `BertForMaskedLM` make sure `config.is_decoder=False` for '
882
  'bi-directional self-attention.')
883
 
884
+ self.bert = BertModel(config, add_pooling_layer=True)
885
 
886
  # Initialize weights and apply final processing
887
  self.post_init()