我正在尝试将 Tensorflow 与我的 GPU 结合使用。我的系统是 Fedora Linux 38,NVIDIA 驱动程序 535.113.01(当前最新)在我的系统上按预期工作。
我使用 Python 3.9 创建了一个 Python 环境(据我所知版本 3.11 无法使用 pip 安装 TF 2.14.0)。
在激活的环境中我安装 TF 如下:
python3.9 -m pip install tensorflow[and-cuda]
Run Code Online (Sandbox Code Playgroud)
我可以看到 pip 安装了 Tensorflow 和许多必需的库(cublas、cuda、cull 等)。
一切看起来都不错,但是当我导入张量流时,我收到此错误:
>>> import tensorflow as tf
2023-10-22 01:58:31.798579: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:9342] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2023-10-22 01:58:31.798611: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT …