Fix evaluation with label smoothing in Trainer
# What does this PR do?

There was a bug in Trainer when using label smoothing: the `compute_loss` function pops the labels out of the inputs so they couldn't be gathered. This PR fixes that.

Fixes #10309 