Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 1.56 KB

MeanPoolingLayer.md

File metadata and controls

63 lines (43 loc) · 1.56 KB

CMeanPoolingLayer Class

This class implements a layer which performs mean pooling on a set of two-dimensional multi-channel images.

Settings

Filter size

void SetFilterHeight( int filterHeight );
void SetFilterWidth( int filterWidth );

Sets the filter size.

Filter stride

void SetStrideHeight( int strideHeight );
void SetStrideWidth( int strideWidth );

Sets the filter stride. The default value is 1.

Trainable parameters

The layer has no trainable parameters.

Inputs

The single input accepts a blob of the following dimensions:

  • BatchLength * BatchWidth * ListSize - the number of images in the set
  • Height - images' height
  • Width - images' width
  • Depth * Channels - the number of channels the image format uses

Outputs

The single output contains a blob of the dimensions:

  • BatchLength is equal to the input BatchLength.
  • BatchWidth is equal to the input BatchWidth.
  • ListSize is equal to the input ListSize.
  • Height can be calculated from the input Height as (Height - FilterHeight)/StrideHeight + 1.
  • Width can be calculated from the input Width as (Width - FilterWidth)/StrideWidth + 1.
  • Depth is equal to the input Depth.
  • Channels is equal to the input Channels.