PyTorch是一個基於Torch的Python開源機器學習庫,用於天然語言處理等應用程序。支持兩個高級功能:html
本文介紹CPU版本的Pytorch (1.5.0) 的安裝與測試。python
如下均爲初學者筆記。git
# 在anaconda環境下安裝pytorch(cpu版本) conda create -n pytorch python==3.6 activate pytorch pip install torch==1.5.0+cpu torchvision==0.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html # 驗證安裝成功 python import torch torc.__version__ # 輸出 "1.5.0+cpu"
本文參考github