18/25
Part 4 of 6 · A stable softmaxLearn and do

keepdims keeps each row's max next to its own row

On a batch of rows, each row needs its own max.

Predict

x is (2, 2) and x.max(axis=-1) has shape (2,). Subtract it from x without keepdims. What happens?

Pick an answer above to see the rest