Pytorch Tutorial  [draft]

Most of the content here is from the Official Pytorch tutorial. I made this to be more concise and to present to a class. You can get the notebook here and the cat image data here. PyTorch Background Data in PyTorch is stored in Tensors, which are almost identical to NumPy arrays. Their key differences are Auto gradient calculation (with torch.autograd) Ability to move to a GPU (with Tensor.to(device)) import torch data = [[1,2,3], [4,5,6], [7,8,9]] data_tensor = torch....

November 16, 2022 · Jakob Johnson