Thanks for your reply, i added some details about my problem above. As I said, the reason why I need the Timedistributed module is that, it can be used to achieve the connection between CNN and LSTM in keras. I don’t know how to implement the same function in pytorch, so I chose to imitate the code of keras