---
title: "MLTensor.ResizeMethod.bilinear(alignCorners:)"
framework: coreml
role: symbol
role_heading: Case
path: "coreml/mltensor/resizemethod/bilinear(aligncorners:)"
---

# MLTensor.ResizeMethod.bilinear(alignCorners:)

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

## Declaration

```swift
case bilinear(alignCorners: Bool = false)
```

## Discussion

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.

## See Also

### Resize methods

- [MLTensor.ResizeMethod.nearestNeighbor](coreml/mltensor/resizemethod/nearestneighbor.md)
