Thanks @ptrblck
I can get logs for CuDNN on the local machine by using environment variables. To get the log on google colab for Pytorch code, I was using-

import os
os.environ[‘CUDNN_LOGINFO_DBG’] = ‘1’
os.environ[‘CUDNN_LOGDEST_DBG’] = ‘log.txt’

But, it doesn’t seem to return any log in .txt file. I also tried to print log on console by using stdout, but it doesn’t work as well. Please suggest how to get log on google colab in Pytorch?