Constructor AveragePool
AveragePool(string, string, int[], int[], int[], AutoPad)
Initializes and returns an instance of AveragePool
pooling layer.
Declaration
public AveragePool(string name, string input, int[] kernelShape, int[] strides, int[] pads, AutoPad autopad = AutoPad.NotSet)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name to use for the output tensor of the layer. |
string | input | The name to use for the input tensor of the layer. |
int[] | kernelShape | The size of the kernel along each spatial axis. |
int[] | strides | The stride along each spatial axis. |
int[] | pads | The lower and upper padding values for each spatial dimension, [pad_left, pad_right] for 1D, [pad_top, pad_bottom, pad_left, pad_right] for 2D, etc. |
AutoPad | autopad | The auto padding mode of the pool as an |