Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

named_parameters 疑问 #1

Open
KeepFaithMe opened this issue Mar 11, 2022 · 1 comment
Open

named_parameters 疑问 #1

KeepFaithMe opened this issue Mar 11, 2022 · 1 comment

Comments

@KeepFaithMe
Copy link

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

@KeepFaithMe
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant