MLTensor.ResizeMethod.bilinear(alignCorners:)
The bilinear interpolation mode where values are computed using bilinear interpolation of 4 neighboring pixels.
Declaration
case bilinear(alignCorners: Bool = false)Discussion
alignCorners is a Boolean indicating whether to align the corners of the upscaling grid to the centre of the scaling dimensions rather than the edges.