tf.config.list_physical_devices('GPU')` instead.
时间: 2024-02-01 14:03:44 浏览: 189
TensorFlow tf.nn.softmax_cross_entropy_with_logits的用法
5星 · 资源好评率100%
`tf.config.list_physical_devices('GPU')` is a command used in TensorFlow to list all available physical GPUs on the system. It is used to check if TensorFlow can detect and use GPUs for computation. If the command returns an empty list, it means that TensorFlow cannot detect any available physical GPUs on the system.
阅读全文