Back to Tensorflow

CoreMLDelegate

tensorflow/lite/g3doc/api_docs/swift/Classes/CoreMLDelegate.html

2.21.01.5 KB
Original Source

CoreMLDelegate

public final class CoreMLDelegate : Delegate

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
                `

The configuration options for the CoreMLDelegate.

Declaration

Swift

public let options: Options

`

                cDelegate
                `

Undocumented

Declaration

Swift

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

`

                init(options:)
                `

Creates a new instance configured with the given options. Returns nil if the underlying Core ML delegate could not be created because Options.enabledDevices was set to neuralEngine but the device does not have the Neural Engine.

Declaration

Swift

public init?(options: Options = Options())

Parameters

| options |

Configurations for the delegate. The default is a new instance of CoreMLDelegate.Options with the default configuration values.

|

`

                EnabledDevices
                `

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

Declaration

Swift

public enum EnabledDevices : Equatable, Hashable

`

                Options
                `

Undocumented

Declaration

Swift

public struct Options : Equatable, Hashable