Class for doing sub-sampling over images.
Class for doing sub-sampling over images.Suppose you put n_input_planes images in each input frame. The images are in one big vector: each input frame has a size of n_input_planes*input_height*input_width. (image after image). Thus, n_inputs = n_input_planes*input_height*input_width.
Then, for each output planes, it takes its associated input plane and it computes the convolution of the input image with a kernel of size k_w*k_w, where the weights of the kernel are equals.
The output image size is computed in the constructor and put in output_height and output_width. n_outputs = n_input_planes*output_height*output_width.
Note that, depending of the size of your kernel, several (last) input columns or rows of the image could be lost.
Note also that no non-linearity is applied in this layer.
Alphabetic index HTML hierarchy of classes or Java