ZouJiu1 / LSQplus

LSQ+ or LSQplus
57 stars 14 forks source link

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

Open Meize0729 opened 1 year ago

Meize0729 commented 1 year ago

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

ZouJiu1 commented 1 year ago

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.