My pytorch based RNN based model always gives the same output

My pytorch based RNN based model always gives the same output. Detailed question here:

Can somebody please help