Learn practical skills, build real-world projects, and advance your career
import torch
import numpy as np
x = np.array([1,2,3])
x.dtype
dtype('int32')
y = torch.from_numpy(x)
y.dtype
torch.int32