<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#L953-L1012) |

DepthwiseConv2D layer supporting CausalConv.

Inherits From: [`CausalConvMixin`](https://www.tensorflow.org/api_docs/python/tfm/vision/layers/CausalConvMixin)

    tfm.vision.layers.DepthwiseConv2D(
        *args, use_buffered_input=False, **kwargs
    )

Supports `padding='causal'` option (like in `tf_keras.layers.Conv1D`),
which applies causal padding to the temporal dimension, and same padding in
the spatial dimensions.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `*args` | Arguments to be passed. |
| `use_buffered_input` | A `bool`. If True, the input is expected to be padded beforehand. In effect, calling this layer will use 'valid' padding on the temporal dimension to simulate 'causal' padding. |
| `**kwargs` | Additional keyword arguments to be passed. |

<br />

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `use_buffered_input` | <br /> <br /> |

<br />

## Methods

### `call`

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

    call(
        inputs
    )

Calls the layer with the given inputs.

### `convolution_op`

    convolution_op(
        inputs, kernel
    )