It looks correct, so I don’t know why torch.version.cuda returns None.
The torch.version.cuda tag would be automatically generated in torch/version.py and should return the shipped CUDA runtime regardless, if you can actually use the GPU or would be facing a driver issue etc.
You could check it at e.g. CONDA_PATH/envs/ENV_NAME/site-packages/torch/version.py.
Since it’s returning None I guess the installation isn’t successful or you are using another conda env.