Convolution..::..MaxPool2D Method

Max pooling operation for spatial data.

Namespace:  SiaNet.NN
Assembly:  SiaNet (in SiaNet.dll)

Syntax


public static Function MaxPool2D(
	Variable layer,
	Tuple<int, int> poolSize,
	Tuple<int, int> strides,
	bool padding
)
Public Shared Function MaxPool2D ( _
	layer As Variable, _
	poolSize As Tuple(Of Integer, Integer), _
	strides As Tuple(Of Integer, Integer), _
	padding As Boolean _
) As Function
public:
static Function^ MaxPool2D(
	Variable^ layer, 
	Tuple<int^, int^>^ poolSize, 
	Tuple<int^, int^>^ strides, 
	bool^ padding
)

Parameters

layer
Type: Variable
The output of the last layer.
poolSize
Type: Tuple<(Of <(<'Int32, Int32>)>)>
A tuple of 2 integers, factors by which to downscale (vertical, horizontal). (2, 2) will halve the input in both spatial dimension. If only one integer is specified, the same window length will be used for both dimensions.
strides
Type: Tuple<(Of <(<'Int32, Int32>)>)>
Integer, tuple of 2 integers, or None. Strides values. If None, it will default to pool_size.
padding
Type: Boolean
Boolean, if true results in padding the input such that the output has the same length as the original input.

Return Value