I’m going through the Pytorch Recipe: Defining a Neural Network in Pytorch, and I have a question regarding the parameters for F.max_pool2d.
In the above code, there are two parameters for F.max_pool2d: x and 2.
My questions:
- To clarify, is the first parameter ‘x’ just representing our data?
- I think I read somewhere that the second parameter is the kernel size, but I’m confused because I thought pooling doesn’t use kernels (aka filters)? I thought only the convolution operation uses kernels/filters? What is this kernel doing in the pooling operation? Or does this second parameter represent something else?
Any help would be appreciated, thank you!
