# CoreMLDelegate

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

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


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


  ` The configuration options for the `CoreMLDelegate`.

  #### Declaration

  Swift

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

- `


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


  ` Undocumented

  #### Declaration

  Swift

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

- `


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


  ` Creates a new instance configured with the given `https://developers.google.com/edge/api/tflite/swift/Classes/CoreMLDelegate.html#/s:19TensorFlowLiteSwift14CoreMLDelegateC7optionsAC7OptionsVvp`. Returns `nil` if the underlying
  Core ML delegate could not be created because `https://developers.google.com/edge/api/tflite/swift/Classes/CoreMLDelegate/Options.html#/s:19TensorFlowLiteSwift14CoreMLDelegateC7OptionsV14enabledDevicesAC07EnabledI0Ovp` was set to
  `neuralEngine` but the device does not have the Neural Engine.

  #### Declaration

  Swift

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

  #### Parameters

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

- `


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


  ` A type indicating which devices the Core ML delegate should be enabled for.

  #### Declaration

  Swift

      public enum EnabledDevices : Equatable, Hashable

- `


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


  ` Undocumented

  #### Declaration

  Swift

      public struct Options : Equatable, Hashable