GlobalMaxPool1D

class GlobalMaxPool1D(layout='NCW', **kwargs)

Gloabl max pooling operation for one dimensional (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. Pooling is applied on the 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) when layout is NCW.