how to check if you have pytorch gpu installed code example Example: check cuda version pytorch torch.version.cuda