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

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.

主站蜘蛛池模板: 武宁县| 洱源县| 嘉鱼县| 徐州市| 滦南县| 尉氏县| 勐海县| 秀山| 横峰县| 格尔木市| 台州市| 临湘市| 龙游县| 改则县| 青龙| 肇州县| 绩溪县| 洞头县| 乾安县| 和政县| 蒲城县| 曲松县| 双桥区| 新宁县| 泰宁县| 阿拉善盟| 延安市| 东城区| 西充县| 胶南市| 怀来县| 渭源县| 西乡县| 晋州市| 卢龙县| 酒泉市| 白朗县| 蓝山县| 阿拉善盟| 涿鹿县| 潼南县|