Skip to content

Tag Archives: Python-PyTorch

Image transformation is a process to change the original values of image pixels to a set of new values. One type of transformation that we… Read More
Linear Algebra module torch.linalg of PyTorch provides the function torch.linalg.det() to compute the determinant of a square(real or complex) matrix. This function also computes the… Read More
Deep Learning is a branch of Machine Learning where algorithms are written which mimic the functioning of a human brain. The most commonly used libraries… Read More
Operating with large datasets requires loading them into memory all at once. In most cases, we face a memory outage due to the limited amount… Read More
Learning Rate is an important hyperparameter in Gradient Descent. Its value determines how fast the Neural Network would converge to minima. Usually, we choose a… Read More
The matrix multiplication is an integral part of scientific computing. It becomes complicated when the size of the matrix is huge. One of the ways… Read More
Over the past few decades, deep learning has made astonishing progress in the field of Artificial Intelligence. Several frameworks can get you started with Deep… Read More
There are various deep learning libraries but the two most famous libraries are PyTorch and Tensorflow. Though both are open source libraries but sometime it… Read More
This article aims to share some PyTorch functions that will help you a lot in your deep learning and data science journey. Each function will… Read More
PyTorch torch.randn() returns a tensor defined by the variable argument size (sequence of integers defining the shape of the output tensor), containing random numbers from… Read More
PyTorch torch.permute() rearranges the original tensor according to the desired ordering and returns a new multidimensional rotated tensor. The size of the returned tensor remains… Read More
PyTorch torch.div() method divides every element of the input with a constant and returns a new modified tensor. Syntax: torch.div(inp, other, out=None) Arguments inp: This… Read More
PyTorch torch.clamp() method clamps all the input elements into the range [ min, max ] and return a resulting tensor. Syntax: torch.clamp(inp, min, max, out=None)… Read More
PyTorch torch.ceil() method returns a new tensor having the ceil value of the elements of input, Which is the smallest integer larger than or equal… Read More
PyTorch torch.add() method adds a constant value to each element of the input tensor and returns a new modified tensor. Syntax: torch.add(inp, c, out=None) Arguments… Read More