Why have a model output raw logits instead of softmax?

I think it’s because that logit.argmax() equals to softmax(logit).argmax() during inference.