tf.keras.layers.GlobalMaxPool2D

Global max pooling operation for spatial data.

Inherits From: Layer, Module

Used in the notebooks

Used in the guide

Examples:

input_shape = (2, 4, 5, 3)
x = tf.random.normal(input_shape)
y = tf.keras.layers.GlobalMaxPool2D()(x)
print(y.shape)
(2, 3)

data_format A string, one of channels_last (defa