which version of pytorch is required for pip code example
Example 1: get pytorch version
import torch
print(torch.__version__)
Example 2: check cuda version pytorch
torch.version.cuda
import torch
print(torch.__version__)
torch.version.cuda