2024.06.02 PyTorch Essential Training
1 | Status: Finished |
Use Google Colab: https://colab.research.google.com/
https://colab.research.google.com/drive/1VHaPSHXGrLlJ5dzC628OVogfY4f8w2mZ
Tensors
Introduction to Tensors
We can think Tensor is generalizations of scalars, vectors, and matrices to any dimension
Tensor vs ndarray
Advantages of Tensors
- Tensor operations are performed significantly faster using GPUs
- Tensors can be stored and manipulated at scale using distributed processing on multiple CPUs and GPUs and across multiple servers
- Tensors keep track of the graph of computations that created them
Creating a tensor CPU example
1 | import torch |