ZeroPadding2D

fun ZeroPadding2D(padding: Int, dataFormat: String?, name: String = "")

Constructs an instance of ZeroPadding2D layer

Parameters

padding

symmetric padding applied to width and height (same on all sides)

name

layer name

fun ZeroPadding2D(padding: Pair<Int, Int>, dataFormat: String?, name: String = "")

Constructs an instance of ZeroPadding2D layer

Parameters

padding

pair of padding values - Pair.first represents vertical padding (applied to top and bottom of image, and Pair.second is horizontal padding (left and right sides)

dataFormat

one of CHANNELS_FIRST or CHANNELS_LAST, depending on dataFormat of input to this layer

name

layer name

fun ZeroPadding2D(padding: IntArray, dataFormat: String?, name: String = "")

Constructs an instance of ZeroPadding2D layer

Parameters

padding

list of padding values. Size of list must be equal to 4. Those list values maps to the following paddings: padding0 -> top padding, padding1 -> bottom padding, padding2 -> left padding, padding3 -> right padding

name

layer name