Learn practical skills, build real-world projects, and advance your career
#! pip install torch===1.5.1 torchvision===0.6.1 -f https://download.pytorch.org/whl/torch_stable.html

Tensors

import torch
t1 = torch.tensor(4.)
t2 = torch.tensor([1,2,3,4])