---
title: MPSCNNLossType
framework: metalperformanceshaders
role: symbol
role_heading: Enumeration
path: metalperformanceshaders/mpscnnlosstype
---

# MPSCNNLossType

Constants that indicate supported loss filter types.

## Declaration

```swift
enum MPSCNNLossType
```

## Topics

### Enumeration Cases

- [MPSCNNLossType.categoricalCrossEntropy](metalperformanceshaders/mpscnnlosstype/categoricalcrossentropy.md)
- [MPSCNNLossType.cosineDistance](metalperformanceshaders/mpscnnlosstype/cosinedistance.md)
- [MPSCNNLossType.count](metalperformanceshaders/mpscnnlosstype/count.md)
- [MPSCNNLossType.hinge](metalperformanceshaders/mpscnnlosstype/hinge.md)
- [MPSCNNLossType.huber](metalperformanceshaders/mpscnnlosstype/huber.md)
- [MPSCNNLossType.kullbackLeiblerDivergence](metalperformanceshaders/mpscnnlosstype/kullbackleiblerdivergence.md)
- [MPSCNNLossType.log](metalperformanceshaders/mpscnnlosstype/log.md)
- [MPSCNNLossType.meanAbsoluteError](metalperformanceshaders/mpscnnlosstype/meanabsoluteerror.md)
- [MPSCNNLossType.meanSquaredError](metalperformanceshaders/mpscnnlosstype/meansquarederror.md)
- [MPSCNNLossType.sigmoidCrossEntropy](metalperformanceshaders/mpscnnlosstype/sigmoidcrossentropy.md)
- [MPSCNNLossType.softMaxCrossEntropy](metalperformanceshaders/mpscnnlosstype/softmaxcrossentropy.md)

### Initializers

- [init(rawValue:)](metalperformanceshaders/mpscnnlosstype/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Enumerations

- [MPSAccelerationStructureStatus](metalperformanceshaders/mpsaccelerationstructurestatus.md)
- [MPSAccelerationStructureUsage](metalperformanceshaders/mpsaccelerationstructureusage.md)
- [MPSAliasingStrategy](metalperformanceshaders/mpsaliasingstrategy.md)
- [MPSBoundingBoxIntersectionTestType](metalperformanceshaders/mpsboundingboxintersectiontesttype.md)
- [MPSCNNBatchNormalizationFlags](metalperformanceshaders/mpscnnbatchnormalizationflags.md)
- [MPSCNNConvolutionGradientOption](metalperformanceshaders/mpscnnconvolutiongradientoption.md)
- [MPSCNNConvolutionWeightsLayout](metalperformanceshaders/mpscnnconvolutionweightslayout.md)
- [MPSCNNReductionType](metalperformanceshaders/mpscnnreductiontype.md)
- [MPSCNNWeightsQuantizationType](metalperformanceshaders/mpscnnweightsquantizationtype.md)
- [MPSCustomKernelIndex](metalperformanceshaders/mpscustomkernelindex.md)
- [MPSDeviceCapsValues](metalperformanceshaders/mpsdevicecapsvalues.md)
- [MPSDeviceOptions](metalperformanceshaders/mpsdeviceoptions.md)
- [MPSFloatDataTypeBit](metalperformanceshaders/mpsfloatdatatypebit.md)
- [MPSFloatDataTypeShift](metalperformanceshaders/mpsfloatdatatypeshift.md)
- [MPSImageType](metalperformanceshaders/mpsimagetype.md)
