我最近开始设置环境以开始机器学习。我有 Win10、i9 处理器、GeForce GTX 1650。我有 Ubuntu 20.04.1 LTS,并安装了 vcxsrv。我能够安装 anaconda navigator,然后从那里安装 Keras 和 Tensorflow。我能够使用 Spyder 并开始运行简单模型。然后我切换到 Tensorflow-GPU 并安装了 CUDA 和 GraphViz。目前我不确定是否有正确的依赖项,构建是否正确,或者它是否实际使用了 GPU。.show() 和 print() 没有在 spyder 中显示图像。我现在看到错误和消息,我不确定如何修复它们。我在 .bashrc 中编辑了 PATH 和 LD_LIBRARY_PATH 如能帮助我解决此问题,我将不胜感激。
NotFoundError: /home/benny/anaconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow/core/kernels/libtfkernel_sobol_op.so: undefined symbol: _ZN10tensorflow8OpKernel11TraceStringB5cxx11EPNS_15OpKernelContextEb
(28, 28, 1) 10
2021-01-25 07:17:48.726718: I tensorflow/compiler/jit/xla_cpu_device.cc:41] Not creating XLA devices, tf_xla_enable_xla_devices not set
2021-01-25 07:17:48.726999: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /home/benny/rdkit-Release_2020_09_3/rdkit:/home/benny/rdkit-Release_2020_3/rdkit/lib::/home/benny/boost_1_75_0/libs:/usr/local/cuda-11.2/lib64${LD_LIBRARY_PATH:+:}
2021-01-25 07:17:48.727015: W tensorflow/stream_executor/cuda/cuda_driver.cc:326] failed call to cuInit: UNKNOWN ERROR (303)
2021-01-25 07:17:48.727030: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (Laptop): /proc/driver/nvidia/version does not exist
2021-01-25 07:17:48.727253: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2021-01-25 07:17:48.728456: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set
2021-01-25 07:17:48.844844: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:116] None of the MLIR optimization passes are enabled (registered 2)
2021-01-25 07:17:48.845218: I tensorflow/core/platform/profile_utils/cpu_utils.cc:112] CPU