Is there any way to loop back output of an LSTM back into itself for a fixed number of timesteps? One way can be using for loop but I think it will be significantly slower.
In short an alternative of this.
        for i in range(k): 
            a0, (h0, c0) = lstm(h0, a0)

@ptrblck