[BUG FIX]:fix get torch.version.cuda error when cuda is None in rocm (#6909)
HI, I found some error when using deepspeed with rocm-torch
```
torch_cuda_version = ".".join(torch.version.cuda.split('.')[:2])
```
will raise an AttributeError when torch.version.cuda is None. This
occurs because the CUDA version in rocm-torch/version.py is set to
always be None, leading to potential runtime errors in environments
where ROCm is being used.
---------
Co-authored-by: Logan Adams <114770087+loadams@users.noreply.github.com>