# What is the gradient of max pooling function?

How TensorFlow calculates the gradient of some functions like **max_pooling2d, avg_pooling2d, **etc.?

How TensorFlow calculates the gradient of some functions like **max_pooling2d, avg_pooling2d, **etc.?

1 Answers

LP

2If I'm not mistaken, Tensorflow keeps all functions and their gradients' representations, before calculating. That's why you need to give the gradient function representation as well, when you define your custom and advanced function. Also I'm not sure, but I think it can calculate the gradients using iterative algorithms, obviously which give approximate values.

Reply

Couldn't find what you were looking for?and we will find an expert to answer.

How helpful was this page?