---
title: machineLearningFunctionDescriptor
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4machinelearningpipelinedescriptor/machinelearningfunctiondescriptor
---

# machineLearningFunctionDescriptor

Assigns the function that the machine learning pipeline you create from this descriptor executes.

## Declaration

```swift
@NSCopying var machineLearningFunctionDescriptor: MTL4FunctionDescriptor? { get set }
```
