A regression task usually uses floating point outputs, while torch.argmax will return the index in the specified dimension containing the max. value and is thus commonly used to get the class predictions for a multi-class classification use case.