Tech News
← Back to articles

Visual Introduction to PyTorch

read original related products more articles

Intro to PyTorch

Easy to follow, visual introduction.

what is PyTorch?

PyTorch is currently one of the most popular deep learning frameworks. It is an open-source library built upon the Torch Library (it's no longer in active development), and it was developed by Meta AI (previously Facebook AI). It is now part of the Linux Foundation.

tensor basics

Machine Learning (ML) is all about numbers. Tensor is a specialised container for those numbers. You might know tensors from maths or physics, but in machine learning, a tensor is simply PyTorch's data type for storing numbers. Think of it like a more powerful version of a list or array. Tensors hold your training data and the your model learns.

What makes tensors special is that they come packed with useful functions. When you create a new tensor, you need to fill it with starting values. PyTorch offers many initialisation functions: torch.rand(), torch.randn(), torch.ones(), the list goes on.

But what's the difference between them? If they give you random numbers, which random numbers? And why there are so many ways to initialise it?

... continue reading