Solved by ptrblck in post #2 
              
              
                No, you don’t. In this tutorial the “words” are fed one by one, so that the output of self.embedding is in this shape. You could also use an arbitrary batch size and sequence length (which would need some changes in the code for this tutorial). 
Also note that the GRU expects the input to have the s…