tf.keras.layers.AveragePooling3D

Average pooling operation for 3D data (spatial or spatio-temporal).

Inherits From: Layer, Module

Downsamples the input along its spatial dimensions (depth, height, and width) by taking the average value over an input window (of size defined by pool_size) for each channel of the input. The window is shifted by strides along each dimension.

pool_size tuple of 3 integers, factors by which to downscale (dim1, dim2, dim3). (2, 2, 2) will halve the size of the 3D input in each dimension.
strides tuple of 3 integers, or None. Strides values.
padding One of "valid" or "same" (case-insensitive). "valid" means no padding.