2.2 What Are Tensors (Part 1 and Part 2)
What we covered in this video lecture
In this video we discussed tensors as a mathematical concept: a generalization of vectors, matrices etc. However, in a computational concept, we usually think of tensors as data containers. If you are familiar with NumPy arrays, PyTorch tensors are essentially a similar concept.
In short, we can think PyTorch tensors as fancy NumPy arrays that support additional functionality, such as automatic differentation and computations on a GPU.
Additional resources if you want to learn more
For an additional take on tensors, I can also highly recommend Josh Starmer’s StatQuest video Tensors for Neural Networks, Clearly Explained!!!.
Log in or create a free Lightning.ai account to access:
- Completion badges
- Progress tracking
- Additional downloadable content
- Additional AI education resources
- Notifications when new units are released
- Free cloud computing credits