---
title: MLTaskState.failed
framework: coreml
role: symbol
role_heading: Case
path: coreml/mltaskstate/failed
---

# MLTaskState.failed

The state of a machine learning task that has terminated due to an error.

## Declaration

```swift
case failed
```

## See Also

### Final states

- [MLTaskState.completed](coreml/mltaskstate/completed.md)
