Convolution..::..AvgPool1D Method

Average pooling operation for spatial data.

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

Syntax


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

Parameters

layer
Type: Variable
The output of the last layer.
poolSize
Type: 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: 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