Tag

autograd

0 views collected around this technical thread.

Python Programming Learning Circle
Python Programming Learning Circle
Jul 22, 2021 · Artificial Intelligence

Understanding PyTorch’s Dynamic Autograd System: Variable, Function, and Engine

This article explains how PyTorch implements its dynamic autograd graph using the core C++ classes Variable, Function, and Engine, detailing their initialization, inheritance hierarchy, code structures, and the execution flow of backward propagation.

C++Dynamic GraphPyTorch
0 likes · 13 min read
Understanding PyTorch’s Dynamic Autograd System: Variable, Function, and Engine
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