我最近在计算机上安装了tensorflow 2.0,但是当我尝试在 GPU 上运行它时,Jupyter 或 Vitual Studio Code 上的函数tf.config.experimental.list_physical_devices('GPU')会返回一个空数组。你知道为什么吗 ?
我的设置:
电脑:微星
处理器:Intel(R) Core(TM) i7-8750H CPU @ 2.220GHz
GPU 0:英特尔(R) 超高清显卡 630
显卡:NVIDIA GeForce GTX 1060
Python:Ananconda 3 与 Python 3.7
Tensenflow 2.0 安装有pip install tensorflow
我的测试代码:
physical_devices = tf.config.experimental.list_physical_devices('GPU')
print(physical_devices)
if physical_devices:
tf.config.experimental.set_memory_growth(physical_devices[0], True)
Run Code Online (Sandbox Code Playgroud)
提前致谢 !:)
我知道这个问题经常被问到,但无论我尝试什么,我都找不到答案。
我使用 AVD android TV (API 24) 并想访问它:
如何在我的应用程序中访问此名称?即使使用 adb 我也从未找到它...