Learn practical skills, build real-world projects, and advance your career

PyTorch进阶之路(一):张量与梯度

http://www.heijing.co/almosthuman2014/2019031212102495499

PyTorch 是 Facebook 开发和维护的一个开源的神经网络库

PyTorch 模型的基本构件:张量和梯度

import torch
#Number
t1 = torch.tensor(4.0)
t1
tensor(4.)
t1.dtype
torch.float32