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