Pytorch | Generative adversarial network based on Pytorch

1. pytorch and neural networks

1.1 pytorch tensor

In Python, ordinary variables are used to store numbers, such as:

a=20
b=30
c=a+b

Tensors are used to store numbers in pytorch (torch needs to be imported), for example:

 

Guess you like

Origin blog.csdn.net/PoGeN1/article/details/131294520