How to stack LSTM net?

Such as, there are 3 LSTM net, their num_layers are 2, and the hidden_size are 10, 8, 6 respectively.
How to stack them?

Basically in cuDNN we allow input vector size to be different from the hidden size, so you just need to pass the y output as the x input of the next LSTM net that you want to stack.

Thanks