tf.keras.layers.ZeroPadding3D

View source on GitHub

Zero-padding layer for 3D data (spatial or spatio-temporal).

Inherits From: Layer

tf.keras.layers.ZeroPadding3D(
    padding=(1, 1, 1), data_format=None, **kwargs
)

Arguments:

Input shape:

5D tensor with shape: - If data_format is "channels_last": (batch, first_axis_to_pad, second_axis_to_pad, third_axis_to_pad, depth) - If data_format is "channels_first": (batch, depth, first_axis_to_pad, second_axis_to_pad, third_axis_to_pad)

Output shape:

5D tensor with shape: - If data_format is "channels_last": (batch, first_padded_axis, second_padded_axis, third_axis_to_pad, depth) - If data_format is "channels_first": (batch, depth, first_padded_axis, second_padded_axis, third_axis_to_pad)