The Most Complete Guide to PyTorch for Data Scientists
Tensors are the basic building blocks in PyTorch and put very simply, they are NumPy arrays but on GPU. In this part, I will list down some of the most used operations we can use while working with Tensors. This is by no means an exhaustive list of operations you can do with Tensors, but it is helpful to understand what tensors are before going towards the more exciting parts. We can create a PyTorch tensor in multiple ways. This includes converting to tensor from a NumPy array.
Sep-30-2020, 20:11:43 GMT
- Technology: