Python ---- pytorch Start Configuration

Python ---- pytorch Start Configuration


* 1. Pycharm installation and Anaconda, Anaconda Python3.7 there are no additional means Python

  Note that the content of the picture

  After installing open Pycharm - File --- Settings - Project Interpreter, will be able to configure Project Interpreter python under your Anaconda directory (not self-Baidu)

* 2. Download Pytorch, the official website https://pytorch.org/get-started/locally/ be selected according to individual circumstances, the details of the content below the official website of reference documents picture

  Use Anaconda installation PyTorch, you need to open Anaconda prompt Start | Anaconda3 | Anaconda Prompt.

Enter your command. The installation (note ladder, self-prepared)

* 3. Verify the installation

Command line, type: python
enter the following code:
from Future Import print_function
Import Torch
X = torch.rand (. 5,. 3)
Print (X)

If the output of a matrix, OK, error GG

Chinese tutorial attached pytorch Address: https://pytorch.apachecn.org/docs/1.0/tut_getting_started.html

Your support is my greatest learning gains, if helpful to you, please click on the recommendation below, thank you.

Guess you like

Origin www.cnblogs.com/brainstorm-yc/p/11520003.html