tf.keras.layers.GlobalMaxPool3D
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
Global Max pooling operation for 3D data.
Inherits From: Layer, Module
tf.keras.layers.GlobalMaxPool3D(
    data_format=None, keepdims=False, **kwargs
)
| Args | 
|---|
| data_format | A string,
one of channels_last(default) orchannels_first.
The ordering of the dimensions in the inputs.channels_lastcorresponds to inputs with shape(batch, spatial_dim1, spatial_dim2, spatial_dim3, channels)whilechannels_firstcorresponds to inputs with shape(batch, channels, spatial_dim1, spatial_dim2, spatial_dim3).
It defaults to theimage_data_formatvalue found in your
Keras config file at~/.keras/keras.json.
If you never set it, then it will be "channels_last". | 
| keepdims | A boolean, whether to keep the spatial dimensions or not.
If keepdimsisFalse(default), the rank of the tensor is reduced
for spatial dimensions.
IfkeepdimsisTrue, the spatial dimensions are retained with
length 1.
The behavior is the same as fortf.reduce_maxornp.max. | 
|  | 
|---|
| 
If data_format='channels_last':
5D tensor with shape:(batch_size, spatial_dim1, spatial_dim2, spatial_dim3, channels)If data_format='channels_first':
5D tensor with shape:(batch_size, channels, spatial_dim1, spatial_dim2, spatial_dim3) | 
| Output shape | 
|---|
| 
If keepdims=False:
2D tensor with shape(batch_size, channels).If keepdims=True:
If data_format='channels_last':
5D tensor with shape(batch_size, 1, 1, 1, channels)If data_format='channels_first':
5D tensor with shape(batch_size, channels, 1, 1, 1) | 
  
  
 
  
    
    
      
       
    
    
  
  
  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. Some content is licensed under the numpy license.
  Last updated 2022-10-27 UTC.
  
  
  
    
      [null,null,["Last updated 2022-10-27 UTC."],[],[]]