model is my trained Keras residual model. I'm trying to calculate the gradient of the loss w.r.t an input tensor, however:
tf.gradients(mse(model.predict(x), y), x[0])
(gradient of loss w.r.t an input tensor), gives me:
[None].
What does None here mean and how can I compute these gradients?