Contents

init(constantPadding:constantValue:)

Creates a padding layer with the constant padding sizes and constant value you specify.

Declaration

convenience init(constantPadding: [Int], constantValue: Float)

Parameters

  • constantPadding:

    An array that contains the constant padding sizes.

  • constantValue:

    The constant value you use to pad the source tensor.

See Also

Creating Padding Layers