---
title: BNNSLossReductionMean
framework: accelerate
role: symbol
role_heading: Global Variable
path: accelerate/bnnslossreductionmean
---

# BNNSLossReductionMean

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

## Declaration

```swift
var BNNSLossReductionMean: BNNSLossReductionFunction { get }
```

## Discussion

Discussion BNNSLossReductionMean sums the loss of all samples in the batch and divides by number of samples.

## See Also

### Reduction Functions

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