官术网_书友最值得收藏!

Installing PyTorch

PyTorch is available as a Python package and you can either use pip, or conda, to build it or you can build it from source. The recommended approach for this book is to use the Anaconda Python 3 distribution. To install Anaconda, please refer to the Anaconda official documentation at https://conda.io/docs/user-guide/install/index.html. All the examples will be available as Jupyter Notebooks in the book's GitHub repository. I would strongly recommend you use Jupyter Notebook, since it allows you to experiment interactively. If you already have Anaconda Python installed, then you can proceed with the following steps for PyTorch installation.

For GPU-based installation with Cuda 8:

conda install pytorch torchvision cuda80 -c soumith

For GPU-based installation with Cuda 7.5:

conda install pytorch torchvision -c soumith

For non-GPU-based installation:

conda install pytorch torchvision -c soumith

At the time of writing, PyTorch does not work on a Windows machine, so you can try a virtual machine (VM) or Docker image.

主站蜘蛛池模板: 白银市| 瑞安市| 五莲县| 厦门市| 积石山| 宾阳县| 九寨沟县| 南宁市| 喀喇| 章丘市| 基隆市| 韶关市| 庆阳市| 抚顺市| 诏安县| 民权县| 台江县| 克拉玛依市| 会昌县| 泌阳县| 辰溪县| 富源县| 师宗县| 株洲市| 嘉定区| 涿鹿县| 玉门市| 江永县| 库伦旗| 黄大仙区| 扶风县| 万安县| 久治县| 芒康县| 高青县| 康乐县| 荣昌县| 靖安县| 绥阳县| 太仓市| 衡东县|