tf.keras.backend.spatial_2d_padding

View source on GitHub

Pads the 2nd and 3rd dimensions of a 4D tensor.

tf.keras.backend.spatial_2d_padding(
    x, padding=((1, 1), (1, 1)), data_format=None
)

Arguments:

Returns:

A padded 4D tensor.

Raises: