In RNN, how can I make the output dimensions (# of features) be different than the hidden_size? E.g. I have hidden_size = 32, but I need the dimension of the output to be dim = 4.
Should I add an additional layer that maps from hidden to required output dimension of different size? If so, how can I achieve this in PyTorch?