You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10 x64
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 1.4
Python version: None
CUDA/cuDNN version: None
GPU model and memory: None
Exact command to reproduce: -
Describe the problem
It seems there is no gradient defined for the Select operation in the C++ API.
I am actually getting this issue while using the C++ API through the C# bindings provided by the TensorFlowSharp project, and for this reason I didn't fill the "exact command to reproduce" field above. However, seeing that @ops.RegisterGradient("Select") is placed in math.grad.py, and given that there is no analogous REGISTER_GRADIENT_OP("Select", SelectGrad) instruction in math_grad.cc, tells me that the gradient for the Select op is indeed still missing from the C++ API.
Hope its not a false alarm given that I didn't test libtensorflow.dll directly.
Thank you, @gundamMC . Sorry that I don't know TensorFlowSharp (and .Net environment), could you report the issue to TensorFlowSharp, or give an example in native tensorflow code?
Activity
facaiy commentedon Nov 24, 2017
@cesarsouza Hi, I open a PR #14862 to add SelectGrad op.
tatatodd commentedon Nov 28, 2017
Thanks @facaiy! Please update this bug when your PR #14862 lands.
gundamMC commentedon Apr 22, 2018
Is the problem fixed?
I see that there's a pr but I'm still getting this error with TensorFlowSharp 1.7.0 (which supports TensorFlow 1.7.0).
facaiy commentedon Apr 22, 2018
@gundamMC SelectGrad has been merged into master branch. Could you give a reproducible example?
gundamMC commentedon Apr 22, 2018
@facaiy Yep,
https://github.com/gundamMC/Neural-Network-GUI-Demo/blob/master/NeuralNetwork/Network.cs
You can pretty much ignore everything else in the repo as all the TensorFlowSharp stuff is in Network.cs.
facaiy commentedon Apr 23, 2018
Thank you, @gundamMC . Sorry that I don't know TensorFlowSharp (and .Net environment), could you report the issue to TensorFlowSharp, or give an example in native tensorflow code?