title: Freezing layers in pre-trained bert model
body: <p><a href="https://i.stack.imgur.com/tsr0m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tsr0m.png" alt="Pre Trained BERT Model"></a></p>
  
  <p>How to freeze the last two layers in the above pre-trained model (dropout and classifier layers)? So that when the model is run, I will get a dense layer as output.</p>