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

感谢分享,有个小问题想咨询 #9

Open
Meize0729 opened this issue Dec 20, 2022 · 1 comment
Open

感谢分享,有个小问题想咨询 #9

Meize0729 opened this issue Dec 20, 2022 · 1 comment

Comments

@Meize0729
Copy link

我在训练前后使用torch.nn.module.extra_repr打印了尺度和偏移的相关信息,但是发现与训练前无异
但是,我尝试只训练权重,而不改变偏移尺度等信息,得到的精度确不如通过lsq+训练得到的结果
说明训练起到了效果,但是打印的信息确没有变化
我不清楚为什么 “打印了尺度和偏移的相关信息,但是发现与训练前无异”
希望得到您的回复

@ZouJiu1
Copy link
Owner

ZouJiu1 commented Dec 21, 2022

there may be something you printed wrong, you can print it like this class LSQPlusActivationQuantizer(nn.Module): or class LSQWeightQuantizer(nn.Module):. Another way is saving the scale and beta to the model, and you can find these parameters in the model.

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