init(input:output:mode:size:filterParameters:)
Returns a new padding layer.
Declaration
convenience init?(input: BNNSNDArrayDescriptor, output: BNNSNDArrayDescriptor, mode: BNNS.PaddingMode, size: [(x: Int, y: Int)], filterParameters: BNNSFilterParameters? = nil)Parameters
- input:
The descriptor of the input.
- output:
The descriptor of the output.
- mode:
The mode the operation uses to pad.
- size:
The number of padding elements to add before and after the original data.
- filterParameters:
The filter runtime parameters.