tf.keras.layers.GlobalMaxPool2D

View source on GitHub

Global max pooling operation for spatial data.

tf.keras.layers.GlobalMaxPool2D(
    data_format=None, **kwargs
)

Arguments:

Input shape:

Output shape:

2D tensor with shape (batch_size, channels).