Normalization layers

Step 10 of 14 in Deep Learning · Build · Medium

BatchNorm normalizes each feature across the batch; LayerNorm across features of one example. Both make deep nets train faster and more stably.

Build it

  1. BatchNorm layer

    Forward and backward BatchNorm in NumPy with running stats for eval mode.

    Done when: Matches torch.nn.BatchNorm1d; train and eval behave differently.

Resources

Earn this star

On the map, you log what you built. Finish the step and its star lights.

Open this step on the map