Class AveragePooling2D
Average pooling operation for spatial data.
Implements
Inherited Members
Namespace: Keras.Layers
Assembly: Keras.dll
Syntax
public class AveragePooling2D : BaseLayer, IDisposable
Constructors
| Improve this Doc View SourceAveragePooling2D(Tuple<Int32, Int32>, Tuple<Int32, Int32>, String, String)
Initializes a new instance of the AveragePooling2D class.
Declaration
public AveragePooling2D(Tuple<int, int> pool_size = null, Tuple<int, int> strides = null, string padding = "valid", string data_format = "channels_last")
Parameters
Type | Name | Description |
---|---|---|
System.Tuple<System.Int32, System.Int32> | pool_size | integer or 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. |
System.Tuple<System.Int32, System.Int32> | strides | Integer, tuple of 2 integers, or None. Strides values. If None, it will default to pool_size. |
System.String | padding | One of "valid" or "same" (case-insensitive). |
System.String | data_format | A string, one of channels_last (default) or channels_first. The ordering of the dimensions in the inputs. channels_last corresponds to inputs with shape (batch, height, width, channels) while channels_first corresponds to inputs with shape (batch, channels, height, width). It defaults to the image_data_format value found in your Keras config file at ~/.keras/keras.json. If you never set it, then it will be "channels_last". |