Learn practical skills, build real-world projects, and advance your career

For more info on the operations of Tensors

https://pytorch.org/docs/stable/tensors.html

1. Stride Operation

 
import torch
t0 = torch.randn(3,2)
t0
--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-1-f5809fa59b23> in <module> ----> 1 import torch 2 t0 = torch.randn(3,2) 3 t0 ModuleNotFoundError: No module named 'torch'
t0.stride()
#https://stackoverflow.com/questions/56659255/what-does-layout-torch-strided-mean
(2, 1)