PyTorch Tutorial - RNN & LSTM & GRU - Recurrent Neural Nets
Implement a Recurrent Neural Net (RNN) in PyTorch! Learn how we can use the nn.RNN module and work with an input sequence.
#more
Implement a Recurrent Neural Net (RNN) in PyTorch! Learn how we can use the nn.RNN module and work with an input sequence. I also show you how easily we can switch to a gated recurrent unit (GRU) or long short-term memory (LSTM) RNN.
Code on GitHub: https://github.com/patrickloeber/pytorch-examples.
Further Readings:¶
- RNN: https://pytorch.org/docs/stable/generated/torch.nn.RNN.html
- LSTM: https://pytorch.org/docs/stable/generated/torch.nn.LSTM.html
-
GRU: https://pytorch.org/docs/stable/generated/torch.nn.GRU.html
- https://stanford.edu/~shervine/teaching/cs-230/cheatsheet-recurrent-neural-networks
- https://pytorch.org/tutorials/intermediate/char_rnn_classification_tutorial.html
FREE VS Code / PyCharm Extensions I Use
✅ Write cleaner code with Sourcery, instant refactoring suggestions: Link*
Python Problem-Solving Bootcamp
🚀 Solve 42 programming puzzles over the course of 21 days: Link*