How to make the output of the lstm network become the input of the next step

I need to move the value output by lstm to the next input, and then make predictions step by step. How do I describe the code?

LSTM