MaxPool2D Constructor (Tuple<(Of <(<'Int32, Int32>)>)>, Tuple<(Of <(<'Int32, Int32>)>)>, Boolean)
Initializes a new instance of the MaxPool2D class.
Namespace:
SiaNet.Model.LayersAssembly: SiaNet (in SiaNet.dll)
Syntax
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.