输出列表:[] ,表可用
import tensorflow as tf
print(tf.config.list_physical_devices('GPU'))
本文介绍如何使用TensorFlow检查系统中可用的GPU设备,这对于深度学习开发者来说是配置环境的基础。通过代码实例,读者将理解如何列出GPU设备并查看其状态。
输出列表:[] ,表可用
import tensorflow as tf
print(tf.config.list_physical_devices('GPU'))
您可能感兴趣的与本文相关的镜像
TensorFlow-v2.15
TensorFlow 是由Google Brain 团队开发的开源机器学习框架,广泛应用于深度学习研究和生产环境。 它提供了一个灵活的平台,用于构建和训练各种机器学习模型

被折叠的 条评论
为什么被折叠?