Hinton et al. (2015) observed that a large model's softmax is nearly one-hot, hiding how it ranks the wrong classes. Dividing the logits by a temperature T above 1 softens the distribution and exposes that ranking, which a smaller student can learn from.
Implement softmax_temperature(logits, T), returning the softmax of logits / T.
T is positive.Divide by T, subtract the maximum for stability, exponentiate and normalize.
No results yet
Run your code to check it against the examples, or submit to run every test.