# MetalDelegate

    public final class MetalDelegate : https://developers.google.com/edge/api/tflite/swift/Protocols/Delegate.html

A delegate that uses the `Metal` framework for performing TensorFlow Lite graph operations with
GPU acceleration.
Important
This is an experimental interface that is subject to change.
- `


  ### [options](https://developers.google.com/edge/api/tflite/swift/Classes/MetalDelegate#/s:19TensorFlowLiteSwift13MetalDelegateC7optionsAC7OptionsVvp)


  ` The configuration options for the `MetalDelegate`.

  #### Declaration

  Swift

      public let options: https://developers.google.com/edge/api/tflite/swift/Classes/MetalDelegate/Options.html

- `


  ### [cDelegate](https://developers.google.com/edge/api/tflite/swift/Classes/MetalDelegate#/s:19TensorFlowLiteSwift13MetalDelegateC01cF0Xevp)


  ` Undocumented

  #### Declaration

  Swift

      public private(set) var cDelegate: CDelegate { get }

- `


  ### [init(options:)](https://developers.google.com/edge/api/tflite/swift/Classes/MetalDelegate#/s:19TensorFlowLiteSwift13MetalDelegateC7optionsA2C7OptionsV_tcfc)


  ` Creates a new instance configured with the given `https://developers.google.com/edge/api/tflite/swift/Classes/MetalDelegate.html#/s:19TensorFlowLiteSwift13MetalDelegateC7optionsAC7OptionsVvp`.

  #### Declaration

  Swift

      public init(options: https://developers.google.com/edge/api/tflite/swift/Classes/MetalDelegate/Options.html = https://developers.google.com/edge/api/tflite/swift/Classes/MetalDelegate/Options.html())

  #### Parameters

  |---|---|
  | ` options ` | Configurations for the delegate. The default is a new instance of `https://developers.google.com/edge/api/tflite/swift/Classes/MetalDelegate/Options.html` with the default configuration values. |

- `


  ### [Options](https://developers.google.com/edge/api/tflite/swift/Classes/MetalDelegate/Options.html)


  ` Options for configuring the `https://developers.google.com/edge/api/tflite/swift/Classes/MetalDelegate.html`.

  #### Declaration

  Swift

      public struct Options : Equatable, Hashable