# tf.keras.backend.local_conv2d

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 1 version](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/keras/backend/local_conv2d) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.0.0/tensorflow/python/keras/backend.py#L5439-L5477) |

Apply 2D conv with un-shared weights.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.keras.backend.local_conv2d`](https://www.tensorflow.org/api_docs/python/tf/keras/backend/local_conv2d)

<br />

    tf.keras.backend.local_conv2d(
        inputs, kernel, kernel_size, strides, output_shape, data_format=None
    )

<br />

<br />

<br />

| ## Arguments ||
|---|---|
| `inputs` | 4D tensor with shape: (batch_size, filters, new_rows, new_cols) if data_format='channels_first' or 4D tensor with shape: (batch_size, new_rows, new_cols, filters) if data_format='channels_last'. |
| `kernel` | the unshared weight for convolution, with shape (output_items, feature_dim, filters). |
| `kernel_size` | a tuple of 2 integers, specifying the width and height of the 2D convolution window. |
| `strides` | a tuple of 2 integers, specifying the strides of the convolution along the width and height. |
| `output_shape` | a tuple with (output_row, output_col). |
| `data_format` | the data format, channels_first or channels_last. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A 4D tensor with shape: (batch_size, filters, new_rows, new_cols) if data_format='channels_first' or 4D tensor with shape: (batch_size, new_rows, new_cols, filters) if data_format='channels_last'. ||

<br />