Solved by austin in post #5 
              
              
                If you’re going to pass an encoder_hidden to your decoder you don’t even need the initHidden method. Your gru will automatically set the initial hidden state to zero, process the whole sequence and pop out an output and hidden_state. 
There are a few ways you can pass these to a decoder. The easiest…