---
title: MPSCNNLossType.cosineDistance
framework: metalperformanceshaders
role: symbol
role_heading: Case
path: metalperformanceshaders/mpscnnlosstype/cosinedistance
---

# MPSCNNLossType.cosineDistance

## Declaration

```swift
case cosineDistance
```
