---
title: MPSCNNLossDataDescriptor
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpscnnlossdatadescriptor
---

# MPSCNNLossDataDescriptor

An object that specifies properties used by a loss data descriptor.

## Declaration

```swift
class MPSCNNLossDataDescriptor
```

## Topics

### Initializers

- [init(data:layout:size:)](metalperformanceshaders/mpscnnlossdatadescriptor/init(data:layout:size:).md)

### Instance Properties

- [bytesPerImage](metalperformanceshaders/mpscnnlossdatadescriptor/bytesperimage.md)
- [bytesPerRow](metalperformanceshaders/mpscnnlossdatadescriptor/bytesperrow.md)
- [layout](metalperformanceshaders/mpscnnlossdatadescriptor/layout.md)
- [size](metalperformanceshaders/mpscnnlossdatadescriptor/size.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

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

## See Also

### Loss Layers

- [MPSCNNLoss](metalperformanceshaders/mpscnnloss.md)
- [MPSCNNLossDescriptor](metalperformanceshaders/mpscnnlossdescriptor.md)
- [MPSCNNLossLabels](metalperformanceshaders/mpscnnlosslabels.md)
- [MPSCNNYOLOLoss](metalperformanceshaders/mpscnnyololoss.md)
- [MPSCNNYOLOLossDescriptor](metalperformanceshaders/mpscnnyololossdescriptor.md)
