Thank you for your reply!
I was wondering if I give the LSTM the same input k times (sequence length k instead of 1) instead of unrolling the timesteps using for loop, will it produce the same outputs as before?
For eg.
a0 = [h0, h0, h0, ..., h0] #k times
out, _ = lstm (h0, a0)
Will the out be same as appended a0 from the original for loop implementation?