Skip navigation
How a neural network gets its gradients: forward pass, then backward pass.
0:00 / 0:16

How a neural network gets its gradients: forward pass, then backward pass.

Mathematica

@mathemetica83K followers

Visit on X

14,537 views

How a neural network gets its gradients: forward pass, then backward pass. Forward: the inputs flow through the graph and every intermediate value is stored. Backward: start from the output with gradient 1. Each node multiplies the incoming gradient by its own local derivative and passes it back to its inputs. For a chain z = f(h(x)), that is just ∂z/∂x = ∂z/∂h · ∂h/∂x.

Comments

Comments from the original post on X (Twitter)

No comments yet