~ python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))" ✔
2024-12-11 20:13:47.064157: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:477] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1733944427.098978 6650 cuda_dnn.cc:8310] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
E0000 00:00:1733944427.106910 6650 cuda_blas.cc:1418] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
[PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]
Why do you believe this? It printed the GPU, what did you expect? There are also some Warnings from the import that can be ignored in this case, but nothing that prevents the script from running.