The Process of Learning Pytorch
Created by Harrytsz at 2019/3/28/ in The WeskLake of HangZhou.
2002年发布 Torch 2011年发布 Torch7
2016年10月发布0.1, THNN 2018年12月发布1.0,Caffe2 Facebook, AI Research
Theano | Torch7 | Caffe |
---|---|---|
TensorFlow | PyTorch+THNN | Caffe2 |
TensorFlow eager | PyTorch+Caffe2 | PyTorch1.0 |
TensorFlow2.0 => 动态图优先!!!
$\begin{Bmatrix} \frac{\partial y}{\partial a} = 2a \times x = 2ax \ \frac{\partial y}{\partial b} = x \ \frac{\partial y}{\partial c} = 1 \end{Bmatrix}$
Tensor 运算 | 神经网络 |
---|---|
Torch.add | Nn.Linear |
Torch.mul | Nn.ReLU |
Torch.matmul | Nn.Conv2d |
Torch.view | Nn.Softmax |
Torch.expand | Nn.Sigmoid |
Torch.cat | Nn.CrossEntropyLoss |
.... | .... |