1.1 Introduction and installation of pytorch

Pytorch installation

1. Introduction to Pytorch

Pytorch is a deep learning framework released by Facebook. It is very popular among users because of its ease of use and friendliness.

2. Pytorch version

[External link image transfer failed, the source site may have an anti-leeching mechanism, it is recommended to save the image and upload it directly (img-NAhVeECw-1648805658418)(..\images\1.2\torch version.png)]

3. Pytorch installation

Installation address introduction: https://pytorch.org/get-started/locally/

Steps to install with GPU:

conda install pytorch torchvision cudatoolkit=9.0 -c pytorch

Installation steps without GPU

conda install pytorch-cpu torchvision-cpu -c pytorch

Open ipython after installation

enter:

In [1]:import torch
In [2]: torch.__version__
Out[2]: '1.0.1'

Note: When installing the module, it is installed pytorch, but it is used in the codetorch

It is installed when the module is installed pytorch, but it is used in the codetorch

Guess you like

Origin blog.csdn.net/m0_49501453/article/details/123903678