-
Notifications
You must be signed in to change notification settings - Fork 84
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
Ternary #86
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, Just a few comments:
larq/quantizers.py
Outdated
return _ternarize_with_identity_grad(x) | ||
|
||
def threshold_twn(self, x): | ||
x_sum = tf.reduce_sum(tf.abs(x)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a tf.stop_gradient
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am unsure, I briefly looked up the documentation and I don't think we do, but there is a significant chance that I am incorrect
@lgeiger I have responded to all of your review comments, please look at the azure pipeline when you have time |
until we have full support for ternary in the summary
Ternarization. Currently still need to do unit tests before can be merged.