转载
官方学习资源torch在nn里面已经封装好了各种函数
- https://pytorch.org/docs/stable/nn.html -nn模块吗,很全
- https://pytorch.org/docs/stable/nn.html#normalization-layers-各种bn介绍
- https://pytorch.org/docs/stable/nn.html#loss-functions-各种loss介绍
- https://pytorch.org/docs/stable/nn.html#non-linear-activations-weighted-sum-nonlinearity-softmax和log_softmax介绍
softmax是一种指数归一化函数。