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

# makeMachineLearningPipelineState(descriptor:)

Creates a new ML pipeline state with descriptor.

## Declaration

```swift
func makeMachineLearningPipelineState(descriptor: MTL4MachineLearningPipelineDescriptor) 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.
