init(method:i_desc:o_desc:align_corners:)
Returns a new resize-layer parameters structure from the specified parameters.
Declaration
init(method: BNNSInterpolationMethod, i_desc: BNNSNDArrayDescriptor, o_desc: BNNSNDArrayDescriptor, align_corners: Bool)Parameters
- method:
The interpolation method for resizing.
- i_desc:
The descriptor of the input.
- o_desc:
The descriptor of the output.
- align_corners:
A Boolean value that specifies whether to align the corners of the upscaling grid to the center of scaling dimensions instead of to the edges.