How did you install PyTorch?
If you are using the binaries, they will use the specified cudatoolkit not your local CUDA installation.
Based on this table 11 you would need the NVIDIA driver >= 418.39 for CUDA10.1, while your current version should work for CUDA9.2.