You cuda version should match with what pytorch expects. Perhaps, you can try uninstalling pytorch and installing it again with correct cuda version. It seems that you have different cuda installations.