DSOD-Pytorch icon indicating copy to clipboard operation
DSOD-Pytorch copied to clipboard

named_parameters 疑问

Open KeepFaithMe opened this issue 3 years ago • 1 comments

博主 您好!耽搁您几分钟时间,想请教您代码中的一个问题,“for name, p in net.named_parameters():p.grad.data.div_(ix)”这段代码的作用是什么?是在进行梯度传递吗?可否去掉呢? 期待您的回复! 祝好!

KeepFaithMe avatar Mar 11 '22 08:03 KeepFaithMe

另外,在module.extractor.densenet.dense_sup5.left.1.weight这一层会出现AttributeError: 'NoneType' object has no attribute 'data',这好像是在这一层没有梯度。

KeepFaithMe avatar Mar 12 '22 05:03 KeepFaithMe