I got into problem , how can i solve this? I want to run pytorch-nightly on colab, I have all codes in pytorch-nightly version because of new packages in it,
I tried to search about this and tried this code but it is not working even after restarting runtime
from os.path import exists
cuda_output = !ldconfig -p|grep cudart.so|sed -e 's/.*\.\([0-9]*\)\.\([0-9]*\)$/cu\1\2/'
accelerator = cuda_output[0] if exists('/dev/nvidia0') else 'cpu'
!pip install torchvision_nightly
!pip install torch_nightly -f https://download.pytorch.org/whl/nightly/{accelerator}/torch_nightly.html
Help!!