Do you know what changed in your setup, which might have broken the working version?
Did you install any new drivers etc.?
The local CUDA installation won’t be used, if you install the binaries with cudatoolkit.
Based on your information, it seems you have a local CUDA10.0 installation, while the PyTorch binaries ship with CUDA10.1.
Based on this table 33 you would need an NVIDIA driver of >= 418.39 to use CUDA10.1.
Did you update PyTorch and swapped CUDA10.0 for 10.1?
If so, you would have to update the driver.