小编Kol*_*pox的帖子

Tensorflow 2.0 list_physical_devices 未检测到我的 GPU

我最近在计算机上安装了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)

提前致谢 !:)

python gpu tensorflow2.0

13
推荐指数
2
解决办法
5万
查看次数

Android : 在 android 电视上获取“设备名称”

我知道这个问题经常被问到,但无论我尝试什么,我都找不到答案。

我使用 AVD android TV (API 24) 并想访问它:

在此处输入图片说明

如何在我的应用程序中访问此名称?即使使用 adb 我也从未找到它...

android device-name android-tv

3
推荐指数
1
解决办法
1352
查看次数

标签 统计

android ×1

android-tv ×1

device-name ×1

gpu ×1

python ×1

tensorflow2.0 ×1