Advertisement

Pytorch实践——知识点梳理

阅读量:

Pytorch构建神经网络记录

1.Typical Loss
-mean squere error(MSE) 均方误差

在这里插入图片描述
在这里插入图片描述

pytorch中求mean squere error的梯度有两种方式:

在这里插入图片描述

The backward( ) function (this is more convenient)
A use case example for the torch.autograd.grad() function
The cross entropy loss

![在这里插入图片描述](https://cdl.it

全部评论 (0)

还没有任何评论哟~