---
title: "init(type:reductionType:)"
framework: metalperformanceshaders
role: symbol
role_heading: Initializer
path: "metalperformanceshaders/mpscnnlossdescriptor/init(type:reductiontype:)"
---

# init(type:reductionType:)

## Declaration

```swift
init(type lossType: MPSCNNLossType, reductionType: MPSCNNReductionType)
```
