pytorch学习笔记(二) gradient

                gradient 在BP的时候,pytorch是将Variable的梯度放在Variable对象中的,咱们随时均可以使用Variable.grad获得对应Variable的grad。刚建立Variable的时候,它的grad属性是初始化为0.0的。css import torchfrom torch.autograd import Variablew1 = Vari
相关文章
相关标签/搜索