@marvosyntactical perfect, this is what I came up with before you wrote this answer. I have one question though. Suppose my input is of the size (batch_size, seq_len, num_inputs) and suppose I need a length len at the output. More clearly, the expected output size is (batch_size, len). I run a loop for len number of times and in each iteration roll my input to the RNN (same input would produce the same output, so I had to do something to the input  ). Do you recommend this way of doing it? Or is there a better way to change the inputs to get the required sequence length?
Thanks a lot for your time!