---
title: "init(_:)"
framework: coreml
role: symbol
role_heading: Initializer
path: "coreml/mlcomputepolicy/init(_:)"
---

# init(_:)

Creates a new compute policy using the given compute units.

## Declaration

```swift
init(_ computeUnits: MLComputeUnits)
```
