A weight matrix sampled naively, with the same scale for every layer, makes activations explode or vanish with depth. The initialization must match the layer's width and activation function.
Implement he_init_weights(fan_in, fan_out, rng), which returns a (fan_out, fan_in) matrix sampled with He's standard deviation.
rng is a numpy.random.Generator.(fan_out, fan_in).Use rng.normal(0, std, size=...) with std = sqrt(2 / fan_in).
No results yet
Run your code to check it against the examples, or submit to run every test.