bfeeny:

So are you saying that with many to one, you would take the hidden output and pass it to your linear layer?


Yes.



 bfeeny:

This is the output of each of the batches of the last time step.


Precisely.



 bfeeny:

What then would ula in the above code be used for?


When you are doing a many-to-many classification or when you are are doing seq2seq modeling (aka encoder-decoder architectures) more specifically, neural machine translation.



 bfeeny:

When or what are you passing that to?


The 4th figure in this tutorial 10 demonstrates how and when all the hidden states are used.