tensorflow测试gpu是否可用

查看是否有GPU:  python import tensorflow as tf gpu_device_name = tf.test.gpu_device_name() print(gpu_device_name) 查看GPU是否可用,返回 True 或者 Falsecode tf.test.is_gpu_available()   from tensorflow.python.client
相关文章
相关标签/搜索