-
Notifications
You must be signed in to change notification settings - Fork 479
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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回到原来的数据范围。这个问题怎么理解
The text was updated successfully, but these errors were encountered: