<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreML",
  "identifier" : "/documentation/CoreML/MLTensor/ResizeMethod/bilinear(alignCorners:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "s:6CoreML8MLTensorV12ResizeMethodO8bilinearyAESb_tcAEmF"
  },
  "title" : "MLTensor.ResizeMethod.bilinear(alignCorners:)"
}
-->

# MLTensor.ResizeMethod.bilinear(alignCorners:)

The bilinear interpolation mode where values are computed using bilinear interpolation of 4 neighboring pixels.

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)