How to use teacher forcing in LSTM

Hi:
how to use teacher forcing in LSTM?
I have no idea to implement this.