Pooling

Currently, Serrano supports 2D Pooling operators.

Notes

  • The inputTensors and outputTensors should have same number of tensors.

Initialization

let op = MaxPool2DOperator(kernelSize: [2, 2],
                           channelPosition: TensorChannelOrder.Last,
                           paddingMode: PaddingMode.Valid)
  • kernelSize. Required. 2D Int array.
  • paddingMode: Default is PaddingMode.Valid.
  • channelPosition. Default is TensorChannelOrder.First



List

MaxPool2DOperator

Max pooling

AvgPool2DOperator

Average pooling

SumPool2DOperator

Sum pooling