Justin Noel
Justin Noel

Reputation: 133

How to differentiate with respect to input variables in tensorflow

I would like to see how sensitive my tensorflow model is to perturbations in the input. Is there a way to differentiate my cost function with respect to the placeholder input variables?

Upvotes: 3

Views: 1761

Answers (1)

Bogdan Kulynych
Bogdan Kulynych

Reputation: 713

Yes, take a look at the tf.gradients function.

Upvotes: 1

Related Questions