Lesson 6 of 14 8 min · 113 words
Forward propagation
Computing outputs layer by layer.
Forward propagation computes the network's output by passing the input through the layers in order. For each layer: multiply by the weights, add the bias, apply the activation.
The final layer's output is the prediction, which goes into the loss. During training, the intermediate and are stored because backpropagation needs them.
For a mini-batch, stack examples as rows of a matrix and the same formulas become matrix–matrix products, which GPUs compute very fast.
Formula to remember
2D convolution
Slides
Slide kernel K over image I and sum products.
Quick check · +5 XP