---
title: "init(descriptor:)"
framework: ML Compute
role: symbol
role_heading: Initializer
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: "mlcompute/mlcpoolinglayer/init(descriptor:)"
---

# init(descriptor:)

Creates a pooling layer with the descriptor you specify.

## Declaration

```swift
convenience init(descriptor: MLCPoolingDescriptor)
```

## Parameters

- `descriptor`: An object you use to configure the pooling layer.

## See Also

### Creating Pooling Layers

- [MLCPoolingDescriptor](mlcompute/mlcpoolingdescriptor.md)
- [MLCPoolingType](mlcompute/mlcpoolingtype-wb8j.md)
