I’ve taken up the 6-week course by Jovian.ml on “Deep Learning with PyTorch: Zero to GANs”taught by Aakash N S. In this article (and the following ones), I will share what I’ve learned during the course.

Intro to PyTorch

Pytorch is an open-source machine learning and deep learning framework developed by Facebook. It is created to process large-scale image analysis, including object detection, recognition and classification and several other tasks. It is written in Python and C++ language. It can be used with other frameworks like Keras etc., to implement complex algorithms.

Tensors

PyTorch is built on tensors. A PyTorch tensor is an n-dimensional array, similar to NumPy arrays.


Installing PyTorch

Open the Anaconda terminal, type and run the following command:

conda install pytorch torchvision cudatoolkit=10.2 -c pytorch

Using Pytorch

Start by importing the PyTorch library into your Jupyter Notebook. I’m importing it as tr (too lazy to type the whole thing). You can just import it as **torch **if you wish.

#tensor #pytorch #deep-learning #machine-learning #framework

Introduction to Pytorch and Tensors
1.30 GEEK