pytorch1.4.0如果使用了view方法,reshape方法,
tensor即使设置了requires_grad,反向传播之后, x返回没有grad梯度,为none
不知道其他版本有无此bug
pytorch梯度返回none的bug
最新推荐文章于 2023-12-21 19:57:39 发布
pytorch1.4.0如果使用了view方法,reshape方法,
tensor即使设置了requires_grad,反向传播之后, x返回没有grad梯度,为none
不知道其他版本有无此bug