MaxPool2D Constructor (Tuple<(Of <(<'Int32, Int32>)>)>, Tuple<(Of <(<'Int32, Int32>)>)>, Boolean)

Initializes a new instance of the MaxPool2D class.

Namespace:  SiaNet.Model.Layers
Assembly:  SiaNet (in SiaNet.dll)

Syntax


public MaxPool2D(
	Tuple<int, int> poolSize,
	Tuple<int, int> strides,
	bool padding
)
Public Sub New ( _
	poolSize As Tuple(Of Integer, Integer), _
	strides As Tuple(Of Integer, Integer), _
	padding As Boolean _
)
public:
MaxPool2D(
	Tuple<int^, int^>^ poolSize, 
	Tuple<int^, int^>^ strides, 
	bool^ padding
)

Parameters

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.