What is num_directions of nn.LSTM

I see num_directions in the document of nn.LSTM. But the doc does say what it means. Can anybody explain it? Thanks.

http://pytorch.org/docs/master/nn.html

1 Like

if the bidirectional option is set, num_directions is 2.

7 Likes

Thanks you so much,I have same the problem too.

what does direction >= 3 mean?

i think it can only be 1 or 2