as

pytorch: 1.5
torchvision: 0.6
cudatoolkit: 10.1.243

You have installed 10.1 version which may be not compatible with 10.2 release .  ,
# CUDA 9.2
conda install pytorch==1.5.0 torchvision==0.6.0 cudatoolkit=9.2 -c pytorch

# CUDA 10.1
conda install pytorch==1.5.0 torchvision==0.6.0 cudatoolkit=10.1 -c pytorch

# CUDA 10.2
conda install pytorch==1.5.0 torchvision==0.6.0 cudatoolkit=10.2 -c pytorch

# CPU Only
conda install pytorch==1.5.0 torchvision==0.6.0 cpuonly -c pytorch

source : https://pytorch.org/get-started/previous-versions/ 22
While installing be sure remove previous pytorch and cudatoolkits and make new conda enviroment to avoid conflicts.