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

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.

主站蜘蛛池模板: 石柱| 手游| 伊宁市| 民县| 崇仁县| 长治市| 柏乡县| 永康市| 太谷县| 乌苏市| 南陵县| 竹山县| 敦化市| 湟中县| 柳河县| 枣庄市| 沽源县| 衡东县| 西畴县| 昌图县| 黑河市| 青冈县| 汕尾市| 九寨沟县| 安塞县| 高陵县| 婺源县| 慈溪市| 沂源县| 建昌县| 西乌珠穆沁旗| 金阳县| 祁连县| 南部县| 雅江县| 弥渡县| 竹山县| 方正县| 旬邑县| 黄浦区| 特克斯县|