tf.keras.layers.GlobalMaxPool2D  |  TensorFlow v2.0.0 (original) (raw)

tf.keras.layers.GlobalMaxPool2D

Stay organized with collections Save and categorize content based on your preferences.

Global max pooling operation for spatial data.

View aliases

Main aliases

tf.keras.layers.GlobalMaxPooling2D

Compat aliases for migration

SeeMigration guide for more details.

tf.compat.v1.keras.layers.GlobalMaxPool2D, tf.compat.v1.keras.layers.GlobalMaxPooling2D

tf.keras.layers.GlobalMaxPool2D(
    data_format=None, **kwargs
)
Arguments
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_firstcorresponds 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".

Input shape:

Output shape:

2D tensor with shape (batch_size, channels).

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2020-10-01 UTC.