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

Can the code be used for 01 activation? #31

Open
yxy1995123 opened this issue Nov 30, 2021 · 2 comments
Open

Can the code be used for 01 activation? #31

yxy1995123 opened this issue Nov 30, 2021 · 2 comments

Comments

@yxy1995123
Copy link

I wonder this code can be used for outputing only 0 or 1 for weights?How

@lollopes
Copy link

I have the same question. I am confused why in the paper it is written that the sign function is used but the hardtanh is used in the implementation

@itayhubara
Copy link
Owner

the paper and code used the sign function for forward propagation and hardtanh for backward to preserve the gradient. This is the straight-through estimator.

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

3 participants