Learn practical skills, build real-world projects, and advance your career

Part 1 - PyTorch basics

!pip install jovian --upgrade --quiet
# Importing the necessary packages
import torch
# Creating a Tensor Number
t1 = torch.tensor(4.)
t1
tensor(4.)
# Create tensors.
x = torch.tensor(3.)
w = torch.tensor(4., requires_grad=True)
b = torch.tensor(5., requires_grad=True)
x, w, b
(tensor(3.), tensor(4., requires_grad=True), tensor(5., requires_grad=True))