Pytorch lightning temperature scaling. This is what i came up with.