Simple test to figure out the format of hiddenOutput of cudnn LSTM, see the file below.
hiddenOutput of normal LSTM
(1,.,.) =
0.3042 0.3042 0.3042
[torch.CudaTensor of size 1x1x3]
hiddenOutput of bidirection LSTM
(1,.,.) =
0.3042 0.3042 0.3042
(2,.,.) =
0.2694 0.2694 0.2694
[torch.CudaTensor of size 2x1x3]
hiddenOutput of two layer bidirection LSTM
(1,.,.) =
0.3042 0.3042 0.3042
(2,.,.) =
0.2694 0.2694 0.2694
(3,.,.) =
0.2341 0.2341 0.2341
(4,.,.) =
0.2274 0.2274 0.2274
[torch.CudaTensor of size 4x1x3]