<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/models/blob/v2.20.0/official/vision/modeling/layers/nn_layers.py#L784-L823) |

Creates a global average pooling layer pooling across spatial dimentions.

    tfm.vision.layers.SpatialAveragePool3D(
        keepdims: bool = False, **kwargs
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `keepdims` | A `bool`. If True, keep the averaged dimensions. |
| `**kwargs` | Additional keyword arguments to be passed to this layer. |

<br />

## Methods

### `call`

[View source](https://github.com/tensorflow/models/blob/v2.20.0/official/vision/modeling/layers/nn_layers.py#L816-L823)

    call(
        inputs, states=None, output_states: bool = False
    )

Calls the layer with the given inputs.