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

AQ中的数据范围缩小问题 #90

Open
xingyueye opened this issue Oct 27, 2021 · 0 comments
Open

AQ中的数据范围缩小问题 #90

xingyueye opened this issue Oct 27, 2021 · 0 comments

Comments

@xingyueye
Copy link

Hi, 我注意到再dorefa的quantizer中
micronet/micronet/compression/quantization/wqaq/dorefa/quantize.py:43
关于activation部分的量化操作,在量化前先乘了0.1进行了数据缩放
output = torch.clamp(input * 0.1, 0, 1) # 特征A截断前先进行缩放(* 0.1),以减小截断误差
但是在量化/反量化操作之后,并没有再乘10回到原来的数据范围。这个问题怎么理解

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