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
y
tensor([1, 2, 3], dtype=torch.int32)
import jovian
jovian.commit()
[jovian] Saving notebook..
[jovian] Creating a new notebook on https://jvn.io
[jovian] Please enter your API key (from https://jvn.io ):