Tag

tensor

0 views collected around this technical thread.

Python Programming Learning Circle
Python Programming Learning Circle
Oct 11, 2021 · Artificial Intelligence

How PyTorch DataLoader Transfers Data Between Processes Using Multiprocessing Queues

This article explains the internal mechanism of PyTorch's DataLoader when using multiple worker processes, detailing how tensors are serialized, shared via multiprocessing.Queue, and reconstructed in the main process to avoid unnecessary memory copies.

DataLoaderPyTorchSerialization
0 likes · 7 min read
How PyTorch DataLoader Transfers Data Between Processes Using Multiprocessing Queues
Python Programming Learning Circle
Python Programming Learning Circle
Apr 26, 2020 · Artificial Intelligence

Understanding PyTorch Autograd: Tensors, Gradients, and Backpropagation

This article explains PyTorch's autograd system, covering tensor creation, the requires_grad flag, detaching tensors, disabling gradient tracking with no_grad, the Function class and computational graph, and demonstrates forward and backward passes with code examples illustrating gradient computation and Jacobian‑vector products.

PyTorchautogradbackpropagation
0 likes · 6 min read
Understanding PyTorch Autograd: Tensors, Gradients, and Backpropagation