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. I also show you how easily we can switch to a gated recurrent unit (GRU) or long short-term memory (LSTM) RNN.

~~~~~~~~~~~~~~ GREAT PLUGINS FOR YOUR CODE EDITOR ~~~~~~~~~~~~~~
🪁 Code faster with Kite: https://www.kite.com/get-kite/?utm_medium=referral&utm_source=youtube&utm_campaign=pythonengineer&utm_content=description-only *
✅ Write cleaner code with Sourcery: https://sourcery.ai/?utm_source=youtube&utm_campaign=pythonengineer *

🚀🚀 JOIN MY NEWSLETTER 🚀🚀
https://www.python-engineer.com/newsletter/

🚀🚀 Get exclusive content on Patreon: 🚀🚀
https://www.patreon.com/patrickloeber

If you enjoyed this video, please subscribe to the channel!

Code:
https://github.com/python-engineer/pytorch-examples

PyTorch Beginner Course:

Beginner Course Code:
https://github.com/python-engineer/pytorchTutorial

PyTorch Tutorial 13 – Feed-Forward Neural Network:

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

Further Readings:
https://karpathy.github.io/2015/05/21/rnn-effectiveness/
https://stanford.edu/~shervine/teaching/cs-230/cheatsheet-recurrent-neural-networks#architecture
https://pytorch.org/tutorials/intermediate/char_rnn_classification_tutorial.html

You can find me here:
Website: https://www.python-engineer.com
Twitter: https://twitter.com/python_engineer
GitHub: https://github.com/python-engineer

#PyTorch

———————————————————————————————————-
* This is a sponsored link. By clicking on it you will not have any additional costs, instead you will support me and my project. Thank you so much for the support! 🙏

Source of this Python/AI Video

AI video(s) you might be interested in …