---
title: MPSNNTrainingStyle
framework: metalperformanceshaders
role: symbol
role_heading: Structure
path: metalperformanceshaders/mpsnntrainingstyle
---

# MPSNNTrainingStyle

Options that control how graph nodes are trained.

## Declaration

```swift
struct MPSNNTrainingStyle
```

## Topics

### Initializers

- [init(rawValue:)](metalperformanceshaders/mpsnntrainingstyle/init(rawvalue:).md)

### Type Properties

- [UpdateDeviceNone](metalperformanceshaders/mpsnntrainingstyle/updatedevicenone.md)
- [updateDeviceCPU](metalperformanceshaders/mpsnntrainingstyle/updatedevicecpu.md)
- [updateDeviceGPU](metalperformanceshaders/mpsnntrainingstyle/updatedevicegpu.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)
