Manipulating Tensors in PyTorch
PyTorch is a deep-learning library. Just like some other deep learning libraries, it applies operations on numerical arrays called tensors. In the simplest terms, tensors are just multidimensional arrays. When we deal with the tensors, some operations are used very often. In PyTorch, there are some functions defined specifically for dealing with tensors.
In the following, we will give a brief overview of what PyTorch provides on tensors and how we can use them. After finishing this tutorial, you will know:
- How to create and operate on PyTorch tensors
- PyTorch’s tensor syntax is similar to NumPy
- The common functions you can use from PyTorch to manipulate a tensor
Kick-start your project with my book Deep Learning with PyTorch.