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

code question about details #14

Open
appleleaves opened this issue Jan 11, 2019 · 1 comment
Open

code question about details #14

appleleaves opened this issue Jan 11, 2019 · 1 comment

Comments

@appleleaves
Copy link

In the file main_binary.py line254, there is a attr as 'org' in p.
What does it means and when is it assigned?
I cannot find any clues from the whole project.

@Enderdead
Copy link
Contributor

The key idea here is to compute the grad on real weight value. So he uses an intern parameter .org to save the real weight value during the forward pass. When he needs to apply the grad computed with binarized weight on the real weight value, he replaces binarized weight by the real one store on .org parameter.

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