25/32
Part 6 of 6 · What interviewers ask nextLearn and do

What interviewers ask next

Deep stacks multiply many factors, so gradients vanish or explode

Once your gradients pass the check, the questions turn to deeper networks.

print(round(0.9 ** 50, 3), round(1.1 ** 50))
Predict

Fifty layers each scale the gradient by 0.9, or each by 1.1. What reaches the bottom?

Pick one to see what it prints.
Pick an answer above to see the rest
Predict

50 ReLU layers of width 256, with c = 1, so each layer halves the gradient's variance. How big is the gradient at the bottom, against the top?

Pick an answer above to see the rest