Learn practical skills, build real-world projects, and advance your career
Created 3 years ago
!pip install jovian --upgrade --quiet
|████████████████████████████████| 71kB 3.4MB/s eta 0:00:011
Building wheel for uuid (setup.py) ... done
import jovian
import torch
#Function 1 - torch.tensor()
torch.tensor() is used to create a tensor
# Example 1 - working
t1 = torch.tensor([[0.2, 0.5],
[0.4, 0.6]])
t1
tensor([[0.2000, 0.5000],
[0.4000, 0.6000]])