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
相關文章
相關標籤/搜索