@Ahmed_Akl , You can do it ,but keep in my that the states such as the hidden and the cell states rely on the batch size. Understanding this video might help answer your question torch.nn.RNN Module explained - YouTube 2