I am trying to write an expression f(x, y) = N(x, y) + N(x, 1) + tf.gradients(N(x, 1), y) where N(x, y) is neural network output for input (x, y) to the NN artitecture NN =