My Test
import tensorflow as tf
hello = tf.constant(\'Hello, TensorFlow!\')
sess = tf.Session()
My Error
Installing nvidia-modprobe can solve this issue.
sudo apt install nvidia-modprobe
Other solutions you can try are :
The problem also could be that only some /dev/nvidia*
files are present before running Python with sudo, check using $ ls /dev/nvidia*
, after running the Device Node verification script the /dev/nvidia-uvm
file gets added.