[−][src]Trait opencv::dnn::prelude::PaddingLayerTrait
Adds extra values for specific axes.
Parameters
-
paddings: Vector of paddings in format
ignore [ pad_before, pad_after, // [0]th dimension pad_before, pad_after, // [1]st dimension ... pad_before, pad_after ] // [n]th dimension
that represents number of padded values at every dimension starting from the first one. The rest of dimensions won't be padded.
-
value: Value to be padded. Defaults to zero.
-
type: Padding type: 'constant', 'reflect'
-
input_dims: Torch's parameter. If @p input_dims is not equal to the actual input dimensionality then the
[0]th
dimension is considered as a batch dimension and @p paddings are shifted to a one dimension. Defaults to-1
that means padding corresponding to @p paddings.