<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Core ML",
      "CoreML"
    ],
    "preciseIdentifier" : "s:6CoreML8MLTensorV12ResizeMethodO"
  },
  "title" : "MLTensor.ResizeMethod"
}
-->

# MLTensor.ResizeMethod

A resize algorithm.

```
enum ResizeMethod
```

## Topics

### Resize methods

[`case bilinear(alignCorners: Bool)`](/documentation/CoreML/MLTensor/ResizeMethod/bilinear(alignCorners:))

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

[`case nearestNeighbor`](/documentation/CoreML/MLTensor/ResizeMethod/nearestNeighbor)

The nearest interpolation mode where values are interpolated using the closest neighbor pixel.

## Relationships

### Conforms To

[`Copyable`](/documentation/Swift/Copyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`Escapable`](/documentation/Swift/Escapable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

---

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)