---
title: MLCSampleMode
framework: ML Compute
role: symbol
role_heading: Enumeration
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: mlcompute/mlcsamplemode
---

# MLCSampleMode

A sampling mode for an upsample layer.

## Declaration

```swift
enum MLCSampleMode
```

## Topics

### Enumeration Cases

- [MLCSampleMode.nearest](mlcompute/mlcsamplemode/nearest.md)
- [MLCSampleMode.linear](mlcompute/mlcsamplemode/linear.md)
- [debugDescription](mlcompute/mlcsamplemode/debugdescription.md)

### Initializers

- [init(rawValue:)](mlcompute/mlcsamplemode/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Creating Upsample Layers

- [init(shape:)](mlcompute/mlcupsamplelayer/init(shape:).md)
- [init(shape:sampleMode:alignsCorners:)](mlcompute/mlcupsamplelayer/init(shape:samplemode:alignscorners:).md)
