Could not load library libcudnn_cnn_train.so.8 while training ConvNet

Hie,

I kinda have the same error, I have explained my error in the thread cuDNN version incompatibility - vision - PyTorch Forums and got a quick response from him. As a beginner I am not able to understand what he said, well in my .bashrc file I found 3 lines

export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/cuda/include:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/extras/CUPTI/lib64

I don’t know what to do from here. So can you please guide me. Thanks in advance.