Nvidia-smi No devices were found

After installing NVIDA drivers for RTX A5000 . nvidia-smi was showing the output but after sometime it shows No devices were found