Sling Academy
Home/PyTorch/Page 47

PyTorch

Learn everything about PyTorch, one of the most deep learning framework these days
Using manual_seed() function in PyTorch

Using manual_seed() function in PyTorch

Updated: Apr 14, 2023
Why use torch.manual_seed() torch.manual_seed() is a function that helps you control the randomness in PyTorch. A lot of times, you want to use random numbers in your code, such as when you create a tensor with torch.rand() or when......

PyTorch: How to create a tensor from a Python list

Updated: Apr 14, 2023
When working with PyTorch, there might be cases where you want to create a tensor from a Python list. For example, you want to create a custom tensor with some specific values that are not easily generated by the built-in tensor creation......
What are PyTorch tensors?

What are PyTorch tensors?

Updated: Apr 14, 2023
A tensor in PyTorch is a multi-dimensional matrix containing elements of a single data type. Tensors are similar to NumPy arrays but can also be operated on a CUDA-capable NVIDIA GPU. A tensor can have any number of dimensions and......
← PreviousPage 47 of 47