GlobalAvgPool1D¶
-
class
GlobalAvgPool1D(layout='NCW', **kwargs)¶ Global average pooling operation for temporal data.
Parameters: - layout : str, default ‘NCW’
Dimension ordering of data and out (‘NCW’ or ‘NWC’). ‘N’, ‘C’, ‘W’ stands for batch, channel, and width (time) dimensions respectively. padding is applied on ‘W’ dimension.
- Inputs:
- data: 3D input tensor with shape (batch_size, in_channels, width) when layout is NCW. For other layouts shape is permuted accordingly.
- Outputs:
- out: 3D output tensor with shape (batch_size, channels, 1).