**Pooling layer**

Accepts as input:

Outputs another feature vector of size , where Accepts as input: The pooling resizes independently every channel of the input feature vector by applying a certain function on neighbourhoods of size , with a stride .source

image source

**Max pooling**

Picks the maximal value from every neighbourhood.

**Average pooling**

Computes the average of every neighbourhood.