Learn practical skills, build real-world projects, and advance your career
import torch
a = torch.FloatTensor([float('inf')])
a
tensor([inf])
t1 = torch.tensor(4.)
t1
tensor(4.)