List-of-Differentiable--OPs-and-Non-differentiable-OPs--in-Tensorflow icon indicating copy to clipboard operation
List-of-Differentiable--OPs-and-Non-differentiable-OPs--in-Tensorflow copied to clipboard

Round is a differentiable operation?

Open scottzockoll opened this issue 5 years ago • 1 comments

I thought there was no gradient defined in TensorFlow for round?

scottzockoll avatar Jun 27 '19 01:06 scottzockoll

Just for your interest. (I know your post is from 2019) I guess that is a wrong entry in the list.

Also see my post: https://github.com/Mainak431/List-of-Differentiable--OPs-and-Non-differentiable-OPs--in-Tensorflow/issues/4

The round-operator has "RegisterGradient" but returns "None". https://github.com/tensorflow/tensorflow/blob/87462bfac761435a46641ff2f10ad0b6e5414a4b/tensorflow/python/ops/math_grad.py#L1818 So my guess is there is indeed no gradient defined. But I'm still wondering why they do it that way instead of using NotDifferentiable ...

TheCrazyT avatar Apr 10 '22 08:04 TheCrazyT