graykode / nlp-tutorial

Natural Language Processing Tutorial for Deep Learning Researchers
https://www.reddit.com/r/MachineLearning/comments/amfinl/project_nlptutoral_repository_who_is_studying/
MIT License
14.03k stars 3.9k forks source link

fix bi-LSTM hidden and cell state shape comments #50

Closed Yuhuishishishi closed 4 years ago

Yuhuishishishi commented 4 years ago

The shape for the hidden and cell state tensor should be [num_layers(=1) * num_directions(=2), batch_size, n_hidden]

graykode commented 4 years ago

I plan to upgrade the code a little further according to the corresponding below PR:

57