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:
dataFormatis"channelsLast":[batch, rows, cols, channels]data_formatis"channels_first":[batch, channels, rows, cols].Output shape: 4D with shape:
dataFormatis"channelsLast":[batch, paddedRows, paddedCols, channels]dataFormatis"channelsFirst":[batch, channels, paddedRows, paddedCols].