DSOD-Pytorch
DSOD-Pytorch copied to clipboard
named_parameters 疑问
博主 您好!耽搁您几分钟时间,想请教您代码中的一个问题,“for name, p in net.named_parameters():p.grad.data.div_(ix)”这段代码的作用是什么?是在进行梯度传递吗?可否去掉呢? 期待您的回复! 祝好!
另外,在module.extractor.densenet.dense_sup5.left.1.weight这一层会出现AttributeError: 'NoneType' object has no attribute 'data',这好像是在这一层没有梯度。