Simple introduction to Pytorch

Here we will cover some basics of pytorch which will help us get started. We will see some basic operations and get our hands dirty with pytorch. We will start by importing necessary modules. import torch import torch.nn as nn Lets us start by initializing a tensor. x = torch.tensor(([5.1,4.3,2.5],[5.1,4.3,2.5],[5.1,4.3,2.5]), dtype=torch.float) In pytorch everything is … Continue reading Simple introduction to Pytorch