---
title: BNNS.LossReduction.reductionMean
framework: accelerate
role: symbol
role_heading: Case
path: accelerate/bnns/lossreduction/reductionmean
---

# BNNS.LossReduction.reductionMean

Sums the loss of all samples in the batch and divides by the number of samples.

## Declaration

```swift
case reductionMean
```

## See Also

### Loss Reduction Functions

- [BNNS.LossReduction.none](accelerate/bnns/lossreduction/none.md)
- [BNNS.LossReduction.sum](accelerate/bnns/lossreduction/sum.md)
- [BNNS.LossReduction.weightedMean](accelerate/bnns/lossreduction/weightedmean.md)
- [BNNS.LossReduction.zeroWeightMean](accelerate/bnns/lossreduction/zeroweightmean.md)
