---
title: MPSCNNLossDescriptor
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpscnnlossdescriptor
---

# MPSCNNLossDescriptor

An object that specifies properties used by a loss kernel.

## Declaration

```swift
class MPSCNNLossDescriptor
```

## Topics

### Initializers

- [init(type:reductionType:)](metalperformanceshaders/mpscnnlossdescriptor/init(type:reductiontype:).md)

### Instance Properties

- [delta](metalperformanceshaders/mpscnnlossdescriptor/delta.md)
- [epsilon](metalperformanceshaders/mpscnnlossdescriptor/epsilon.md)
- [labelSmoothing](metalperformanceshaders/mpscnnlossdescriptor/labelsmoothing.md)
- [lossType](metalperformanceshaders/mpscnnlossdescriptor/losstype.md)
- [numberOfClasses](metalperformanceshaders/mpscnnlossdescriptor/numberofclasses.md)
- [reduceAcrossBatch](metalperformanceshaders/mpscnnlossdescriptor/reduceacrossbatch.md)
- [reductionType](metalperformanceshaders/mpscnnlossdescriptor/reductiontype.md)
- [weight](metalperformanceshaders/mpscnnlossdescriptor/weight.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Loss Layers

- [MPSCNNLoss](metalperformanceshaders/mpscnnloss.md)
- [MPSCNNLossDataDescriptor](metalperformanceshaders/mpscnnlossdatadescriptor.md)
- [MPSCNNLossLabels](metalperformanceshaders/mpscnnlosslabels.md)
- [MPSCNNYOLOLoss](metalperformanceshaders/mpscnnyololoss.md)
- [MPSCNNYOLOLossDescriptor](metalperformanceshaders/mpscnnyololossdescriptor.md)
