---
title: reductionType
framework: ML Compute
role: symbol
role_heading: Instance Property
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: mlcompute/mlclossdescriptor/reductiontype
---

# reductionType

The reduction operation performed by the loss function.

## Declaration

```swift
var reductionType: MLCReductionType { get }
```

## See Also

### Inspecting Loss Descriptors

- [lossType](mlcompute/mlclossdescriptor/losstype.md)
- [weight](mlcompute/mlclossdescriptor/weight.md)
- [labelSmoothing](mlcompute/mlclossdescriptor/labelsmoothing.md)
- [classCount](mlcompute/mlclossdescriptor/classcount.md)
- [epsilon](mlcompute/mlclossdescriptor/epsilon.md)
- [delta](mlcompute/mlclossdescriptor/delta.md)
