# Delegate

    enum Delegate: RawRepresentable, Sendable, Equatable, Hashable, BitwiseCopyable

The delegate to run MediaPipe. If the delegate is not set, the default delegate CPU is used.
- `
  ### [CPU](https://developers.google.com/edge/api/mediapipe/swift/text/Enums/Delegate.md.txt#/c:_E_MPPDelegate_MPPDelegateCPU)

  `

  #### Declaration

  Swift

      case CPU

- `
  ### [GPU](https://developers.google.com/edge/api/mediapipe/swift/text/Enums/Delegate.md.txt#/c:_E_MPPDelegate_MPPDelegateGPU)

  `

  #### Declaration

  Swift

      case GPU

- `
  ### [default](https://developers.google.com/edge/api/mediapipe/swift/text/Enums/Delegate.md.txt#/c:_E_MPPDelegate_MPPDelegateDefault)

  `

  #### Declaration

  Swift

      case `default`

- `
  ### [init(rawValue:)](https://developers.google.com/edge/api/mediapipe/swift/text/Enums/Delegate.md.txt#/s:So11MPPDelegateV8rawValueABSgSu_tcfc)

  `

  #### Declaration

  Swift

      init?(rawValue: UInt)