Why do the argmax/one-hot conversion here? Is there a reason to do that inside this function, rather than returning the probability vector, and let generic external code compute different things on it, including likelihood of the exact label?