Pytorch

Adarsha Regmi
Feb 24, 2022

--

  • A machine learning framework that has in built code for machine learning task similarly we did in python modules where we directly imported the methods for ml, models and run our data.
  • It is quite similar to numpy.

TorchScript

We have used the model created exported to serializable object and later used in different place to run the code. The same task is performed by TorchScript.

Distributed Training

Pytorch supports the GPU processing where we can distribute our raw dataset into different batches and train parallelly.

INSTALLING THE PYTORCH LOCALLY

Check this link

validate installation with following code;

import torch
x = torch.rand(1,2)
print(x)
screenshot for code running

for more dive into next story. https://adarsharegmi121.medium.com/pytorch-part-2-698db1731ea9

--

--