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

想请教关于反向传播梯度的问题 #136

Open
zhaoyong11 opened this issue Mar 24, 2023 · 1 comment
Open

想请教关于反向传播梯度的问题 #136

zhaoyong11 opened this issue Mar 24, 2023 · 1 comment

Comments

@zhaoyong11
Copy link

zhaoyong11 commented Mar 24, 2023

博主你好!
你的代码很优秀,解决了我的很多问题,但是我还是有个问题想问你!
就是,我用你的代码训练没问题,但是当我做通道剪枝的时候,需要对BN层的权重进行扩散训练。模型的反向传播中
backbone模块都有权重的梯度信息,但是到了fpn的later_conv层后,梯度信息就消失了,我就无法对fpn层以后的模型的BN进行扩散训练.会报AttributeError: 'NoneType' object has no attribute 'data'的错误,我在网上也没有找到正确的解决方法。

@bubbliiiing
Copy link
Owner

我没有剪枝过不太懂欸

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

2 participants