---
title: MPSCNNLossNode
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpscnnlossnode
---

# MPSCNNLossNode

A representation of a loss kernel.

## Declaration

```swift
class MPSCNNLossNode
```

## Topics

### Initializers

- [init(source:lossDescriptor:)](metalperformanceshaders/mpscnnlossnode/init(source:lossdescriptor:).md)

### Instance Properties

- [inputLabels](metalperformanceshaders/mpscnnlossnode/inputlabels.md)

## Relationships

### Inherits From

- [MPSNNFilterNode](metalperformanceshaders/mpsnnfilternode.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Loss Layer Nodes

- [MPSCNNYOLOLossNode](metalperformanceshaders/mpscnnyololossnode.md)
- [MPSNNLabelsNode](metalperformanceshaders/mpsnnlabelsnode.md)
