Learn practical skills, build real-world projects, and advance your career
Created 4 years ago
import torch
t1 = torch.tensor(4.)
t1
tensor(4.)
t1.shape
torch.Size([])
t2 = torch.tensor([1,2,3])
import torch
t1 = torch.tensor(4.)
t1
tensor(4.)
t1.shape
torch.Size([])
t2 = torch.tensor([1,2,3])