---
title: sampleMode
framework: ML Compute
role: symbol
role_heading: Instance Property
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: mlcompute/mlcupsamplelayer/samplemode
---

# sampleMode

The upsampling algorithm type.

## Declaration

```swift
var sampleMode: MLCSampleMode { get }
```

## See Also

### Inspecting Upsample Layers

- [shape](mlcompute/mlcupsamplelayer/shape-61n1u.md)
- [alignsCorners](mlcompute/mlcupsamplelayer/alignscorners.md)
