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

Lesson 1

#Number
t1 = torch.tensor([4.])
t1
t1.shape
torch.Size([1])
#Vector
t2 = torch.tensor([1.,2,3,4])
t2
t2.shape
torch.Size([4])
#Matrix
t3 = torch.tensor([[5., 6],
                  [7, 8],
                  [9,10]
                  ])
t3
t3.shape
torch.Size([3, 2])