We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I do not understand why there are two lines of codes in binarize(x): x=tf.clip_by_value(x,-1,1) return tf.sign(x)
x=tf.clip_by_value(x,-1,1)
return tf.sign(x)
because clipping will not change the sign of x. Why we need the first line?
The text was updated successfully, but these errors were encountered:
I think it is the way to reinforce straight through estimator because tf.clip_by_value happens to zero out out gradients for x out of bound.
Sorry, something went wrong.
I have the same question. The tf.clip_by_value seems to be redundant before tf.sign.
No branches or pull requests
I do not understand why there are two lines of codes in binarize(x):
x=tf.clip_by_value(x,-1,1)
return tf.sign(x)
because clipping will not change the sign of x. Why we need the first line?
The text was updated successfully, but these errors were encountered: