-
Notifications
You must be signed in to change notification settings - Fork 74k
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
gradient of tf.floor #897
Comments
Yes, the gradient of floor is always zero. |
Well, almost always. |
Should it be as simple as changing: @ops.RegisterGradient("Floor")
def _FloorGrad(_, grad):
return grad # return 0 in |
Yes, changing it to return |
Thanks. Could you explain why |
|
It looks like the gradient of
tf.floor(x)
w.r.tx
is 1. But I'm expecting it to be 0, as in theano.Right now I could use a double casting as a work around, but why is it different?
The text was updated successfully, but these errors were encountered: