Python学习(4):autograd.grad()+view(x.size(0),-1) +torch.sum(). 这个就是regularation~~. 先算梯度,然后按照torch格式重新排列,然后在每一个batch上求和dydx ...
確定! 回上一頁