---
title: BNNSLossReductionFunction
framework: accelerate
role: symbol
role_heading: Structure
path: accelerate/bnnslossreductionfunction
---

# BNNSLossReductionFunction

Constants that describe reduction functions used by a loss layer.

## Declaration

```swift
struct BNNSLossReductionFunction
```

## Topics

### Reduction Functions

- [rawValue](accelerate/bnnslossreductionfunction/rawvalue.md)
- [init(_:)](accelerate/bnnslossreductionfunction/init(_:).md)
- [init(rawValue:)](accelerate/bnnslossreductionfunction/init(rawvalue:).md)
- [BNNSLossReductionMean](accelerate/bnnslossreductionmean.md)
- [BNNSLossReductionNonZeroWeightMean](accelerate/bnnslossreductionnonzeroweightmean.md)
- [BNNSLossReductionSum](accelerate/bnnslossreductionsum.md)
- [BNNSLossReductionWeightedMean](accelerate/bnnslossreductionweightedmean.md)
- [BNNSLossReductionNone](accelerate/bnnslossreductionnone.md)

## Relationships

### Conforms To

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

## See Also

### Loss layers

- [BNNS.LossLayer](accelerate/bnns/losslayer.md)
- [BNNSLossFunction](accelerate/bnnslossfunction.md)
- [BNNSLayerParametersLossBase](accelerate/bnnslayerparameterslossbase.md)
- [BNNSLayerParametersLossHuber](accelerate/bnnslayerparameterslosshuber.md)
- [BNNSLayerParametersLossSigmoidCrossEntropy](accelerate/bnnslayerparameterslosssigmoidcrossentropy.md)
- [BNNSLayerParametersLossSoftmaxCrossEntropy](accelerate/bnnslayerparameterslosssoftmaxcrossentropy.md)
- [BNNSLayerParametersLossYolo](accelerate/bnnslayerparameterslossyolo.md)
- [BNNSFilterCreateLayerLoss(_:_:)](accelerate/bnnsfiltercreatelayerloss(_:_:).md)
- [BNNSLossFilterApplyBatch(_:_:_:_:_:_:_:_:_:_:_:)](accelerate/bnnslossfilterapplybatch(_:_:_:_:_:_:_:_:_:_:_:).md)
- [BNNSLossFilterApplyBackwardBatch(_:_:_:_:_:_:_:_:_:_:_:_:)](accelerate/bnnslossfilterapplybackwardbatch(_:_:_:_:_:_:_:_:_:_:_:_:).md)
