Jovian
⭐️
Sign In
In [1]:
import torch
import numpy as np
In [2]:
x = np.array([1,2,3])
In [3]:
x.dtype
Out[3]:
dtype('int32')
In [4]:
y = torch.from_numpy(x)
In [5]:
y.dtype
Out[5]:
torch.int32
In [6]:
y

Out[6]:
tensor([1, 2, 3], dtype=torch.int32)
In [7]:
import jovian
In [ ]:
jovian.commit()
[jovian] Saving notebook..
[jovian] Creating a new notebook on https://jvn.io [jovian] Please enter your API key (from https://jvn.io ):
In [ ]: