---
title: "makeMachineLearningPipelineState(descriptor:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtl4compiler/makemachinelearningpipelinestate(descriptor:)-36hxx"
---

# makeMachineLearningPipelineState(descriptor:)

Creates a new machine learning pipeline state asynchronously.

## Declaration

```swift
func makeMachineLearningPipelineState(descriptor: MTL4MachineLearningPipelineDescriptor) async throws -> any MTL4MachineLearningPipelineState
```

## Parameters

- `descriptor`: A machine learning pipeline state descriptor to use for creating the new pipeline state.

## Return Value

Return Value A machine learning pipeline state upon success, otherwise this function throws.
