---
title: machineLearning
framework: metal
role: symbol
role_heading: Type Property
path: metal/mtltensorusage/machinelearning
---

# machineLearning

A tensor context that applies to machine learning encoders.

## Declaration

```swift
static var machineLearning: MTLTensorUsage { get }
```

## Discussion

Discussion You can use tensors with this context in MTL4MachineLearningCommandEncoder instances.
