Zero-padding layer for 2D input (e.g., image).
This layer can add rows and columns of zeros at the top, bottom, left and right side of an image tensor.
Input shape: 4D tensor with shape:
dataFormat
"channelsLast"
[batch, rows, cols, channels]
data_format
"channels_first"
[batch, channels, rows, cols]
Output shape: 4D with shape:
[batch, paddedRows, paddedCols, channels]
"channelsFirst"
[batch, channels, paddedRows, paddedCols]
Optional
Generated using TypeDoc
Zero-padding layer for 2D input (e.g., image).
This layer can add rows and columns of zeros at the top, bottom, left and right side of an image tensor.
Input shape: 4D tensor with shape:
dataFormat
is"channelsLast"
:[batch, rows, cols, channels]
data_format
is"channels_first"
:[batch, channels, rows, cols]
.Output shape: 4D with shape:
dataFormat
is"channelsLast"
:[batch, paddedRows, paddedCols, channels]
dataFormat
is"channelsFirst"
:[batch, channels, paddedRows, paddedCols]
.