chenyuntc:

Yes, but you need to figure out the input and output of RNN/LSTM/GRU.


By ‘layer’ I mean the layers of a stacked RNN. PyTorch RNN module only takes a single parameter ‘hidden_size’ and all stacked layers are of exactly the same hidden size. But is it possible to make layers have different hidden size?