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

Question about uniform random noise when calculating weight gradient #11

Open
dwookkim opened this issue Jul 30, 2022 · 0 comments
Open

Comments

@dwookkim
Copy link

dwookkim commented Jul 30, 2022

May I ask, why is uniform random noise added at the end of the non-ideal weight gradient calculation, in wage_quantizer.py line 74-75?

image
image

It may seem that the gradient calculated in line 73 is already quantized to the desired resolution. May I ask why the process of adding uniform random noise and re-quantizing the gradient is necessary?
Can someone please explain the reason for this? Thank you.

@dwookkim dwookkim closed this as completed Aug 1, 2022
@dwookkim dwookkim reopened this Aug 1, 2022
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