| 主機參考:VPS測評參考推薦/專注分享VPS服務器優惠信息!若您是商家可以在本站進行投稿,查看詳情!此外我們還提供軟文收錄、PayPal代付、廣告贊助等服務,查看詳情! |
| 我們發布的部分優惠活動文章可能存在時效性,購買時建議在本站搜索商家名稱可查看相關文章充分了解該商家!若非中文頁面可使用Edge瀏覽器同步翻譯!PayPal代付/收錄合作 |

如何在Linux上查看PyTorch環境?
要查看Linux上的PyTorch環境,請按照下列步驟操作:
1.檢查PyTorch版本(可選):
& ltcode class = & quot痛擊& quot& gt& lta style = & quot最大寬度:90%"href = & quothttps://m.php.cn/zt/15730.html"目標= & quot_blank"& gtpython & lt/a & gt;-c & quot;進口火炬;打印(火炬。_ _ version _ _)& quot;& lt/code & gt;2.檢查安裝的PyTorch包和版本:
& ltcode class = & quot痛擊& quot& gtpip列表| grep torch & lt/code & gt;3.檢查CUDA版本(如果已安裝):
& ltcode class = & quot痛擊& quot& gtnvcc版本<。/code & gt;4.檢查cuDNN的版本(如果已安裝):
& ltcode class = & quot痛擊& quot& gtcat/usr/local/cuda/include/cud nn . h | grep cud nn _ MAJOR & lt;/code & gt;5.檢查OpenMP支持:
& ltcode class = & quot痛擊& quot& gtpython-c & quot;進口火炬;print(torch . backends . openmp . is _ avail())& quot;& lt/code & gt;6.檢查GPU可用性:
& ltcode class = & quot痛擊& quot& gtNVIDIA-SMI & lt;/code & gt;7.查看環境變量:
& ltcode class = & quot痛擊& quot& gtenv | grep CUDAenv | grep CUDNN & lt/code & gt;8.檢查Python版本:
& ltcode class = & quot痛擊& quot& gtpython版本& lt/code & gt;9.檢查畫中畫版本:
& ltcode class = & quot痛擊& quot& gtpip版本& lt/code & gt;10.檢查系統信息:
& ltcode class = & quot痛擊& quot& gtuname-ACAT/etc/OS-release & lt;/code & gt;
這幾篇文章你可能也喜歡:
- 如何在坡道環境中優化數據庫(數據庫優化方法)
- 如何解決動物園管理器延遲問題
- 如何備份和恢復Zookeeper數據(Zookeeper數據所在)
- 如何優化Zookeeper內存使用率(Zookeeper Zuul)
- 如何管理數據庫偵聽器(數據庫Binlog偵聽器)
本文由主機參考刊發,轉載請注明:如何查看linux的pytorch環境(如何查看linux的python版本) http://m.k2270.com/118863.html
主機參考

















評論前必須登錄!
注冊