Skip to content

Tag Archives: Python-PyTorch

In this article, we will Understand PyTorch Activation Functions.  What is an activation function and why to use them? Activation functions are the building blocks… Read More
In this article, we are going to see how to convert an image to grayscale in PyTorch.  torchvision.transforms.grayscale method Grayscaling is the process of converting… Read More
In this article, we will discuss how to pad an image on all sides in PyTorch.  transforms.pad() method Paddings are used to create some space… Read More
In this article, we will cover how to perform the random affine transformation of an image in PyTorch. RandomAffine() method RandomAffine() method accepts PIL Image… Read More
In this article, we will discuss how to pad an image on all sides in PyTorch.  Torchvision.transforms.RandomCrop method Cropping is a technique of removal of… Read More
In this article, we are going to see how to compute the element-wise angle of a given input tensor in PyTorch. torch.angle() method Pytorch is… Read More
In this article, we will discuss how to crop an image at the center in PyTorch.  CenterCrop() method We can crop an image in PyTorch… Read More
In this article, we are going to see the difference between a Tensor and a variable in Pytorch. Pytorch is an open-source Machine learning library… Read More
In this article, we will understand how to squeeze and unsqueeze a PyTorch Tensor.   To squeeze a tensor we can apply the torch.squeeze() method… Read More
In this article, we are going to see how to compute element-wise logical AND, OR, and NOT of given tensors in PyTorch. We can compute… Read More
In this article, we are going to discuss how to find the transpose of the tensor in PyTorch. The transpose is obtained by changing the… Read More
Logistic Regression Logistic Regression is also known as Binary Classification is one of the most popular Machine Learning Algorithms. It comes under Supervised Learning Classification… Read More
In this post, we will discuss ten PyTorch Functional Transforms most used in computer vision and image processing using PyTorch. PyTorch provides the torchvision library… Read More
In this article, we will discuss how to resize a Tensor in Pytorch. Resize allows us to change the size of the tensor. we have… Read More
In this article, we are going to understand how to perform element-wise subtraction on tensors in PyTorch in Python. We can perform element-wise subtraction using… Read More

Start Your Coding Journey Now!