我完全沉迷于TensorFlow和GPU。我的笔记本电脑上有Nvidia 1660 Ti
,它在设备管理器中正确显示:
我已完成的步骤:
- 从Microsoft Store
- 安装WSL Ubuntu我遵循了教程中的每一步
- 我尝试使用
python -c "code"
命令执行一行命令,如下所示:
>>> python -c "import tensorflow as tf; print(tf.config.list_physical(devices())"
答案是:
2023-02-07 23:14:26.097253: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: SSE4.1 SSE4.2 AVX AVX2 FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. [PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU')]
最后一行告诉TensorFlow只能看到我的CPU
我不知道为什么我会遇到这种问题,也不知道如何解决。如果你曾经遇到过这种问题,请在下面告诉我如何解决,谢谢。