24/32
Part 5 of 6 · Prove it with a gradient checkLearn
What each test sees
Here is what each test sees, from running every bug through the practice tests:
| Bug | Gradient check | Huge logits | Training run |
|---|---|---|---|
| No division by N | fails, all 6x | passes | fails, NaN |
b2 averaged twice | fails on b2 | passes | passes, 98.3% |
| No ReLU mask | fails on W1, b1 | passes | passes, 98.3% |
Mask from h >= 0 | fails on W1, b1 | passes | passes, 98.3% |
| No max subtraction | passes | fails, inf | passes, 98.3% |
The gradient check can't see overflow, so it needs the huge-logit test beside it.