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

# MLCUpsampleLayer

A layer that applies upsampling with the shape you specify.

## Declaration

```swift
class MLCUpsampleLayer
```

## Topics

### Creating Upsample Layers

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

### Inspecting Upsample Layers

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

## Relationships

### Inherits From

- [MLCLayer](mlcompute/mlclayer.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Convolution and Recurrent Layers

- [MLCConvolutionLayer](mlcompute/mlcconvolutionlayer.md)
- [MLCLSTMLayer](mlcompute/mlclstmlayer.md)
- [MLCPoolingLayer](mlcompute/mlcpoolinglayer.md)
- [MLCEmbeddingLayer](mlcompute/mlcembeddinglayer.md)
