當(dāng)前位置:
首頁 >
Tensorflow中查看gpu是否可用
發(fā)布時間:2025/3/11
58
豆豆
生活随笔
收集整理的這篇文章主要介紹了
Tensorflow中查看gpu是否可用
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
Tensorflow中查看gpu是否可用
使用tf.test.is_gpu_available()函數(shù)可直接返回
?
Tensorflow測試程序
# Python import tensorflow as tf hello = tf.constant('Hello, TensorFlow!') sess = tf.Session() print(sess.run(hello)) 創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎勵來咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎總結(jié)
以上是生活随笔為你收集整理的Tensorflow中查看gpu是否可用的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 深度学习-服务端训练+android客户
- 下一篇: android 页面无法点击,为什么点击