Convolution..::..MaxPool1D Method

Max pooling operation for temporal data.

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

Syntax


public static Function MaxPool1D(
	Variable layer,
	int poolSize,
	int strides,
	bool padding
)
Public Shared Function MaxPool1D ( _
	layer As Variable, _
	poolSize As Integer, _
	strides As Integer, _
	padding As Boolean _
) As Function
public:
static Function^ MaxPool1D(
	Variable^ layer, 
	int^ poolSize, 
	int^ strides, 
	bool^ padding
)

Parameters

layer
Type: Variable
The output of the last layer.
poolSize
Type: Int32
Integer, size of the max pooling windows.
strides
Type: Int32
Factor by which to downscale. E.g. 2 will halve the input. 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