2021-12-15 16:36:54.995706: E tensorflow/stream_executor/cuda/cuda_driver.cc:271] failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
2021-12-15 16:36:54.995795: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (ethan-ThinkPad-T14-Gen-1): /proc/driver/nvidia/version does not exist
2021-12-15 16:36:54.996683: I tensorflow/core/platform/cpu_feature_guard.cc:151] 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.
电脑的配置:Lenovo T14,显卡是Intel
CUDA环境搭建必须是nvidia(gpu)显卡,所以用GPU-Z工具来测试一下,我得到的测试结果是