Function Gradients With Gather Operations In Tensorflow
I am trying to write a complicated computational graph using tensorflow and compute symbolic gradients with respect to function parameters. However I am struggling with this when m
Solution 1:
The answer was very simple. I just needed to use the tf.convert_to_tensor() function
T_grad = tf.gradients(T_loss,[T_W])
T_grad = tf.convert_to_tensor(T_grad[0])
Post a Comment for "Function Gradients With Gather Operations In Tensorflow"