tensorflow 2.5 not using gpu code example
Example 1: tensorflow use gpu
python -c "import tensorflow as tf; print('Num GPUs Available: ', len(tf.config.experimental.list_physical_devices('GPU')))"
Example 2: tensorflow cant see gpu
$ pip uninstall tensorflow
$ pip install tensorflow-gpu