Back to Tensorflow

Options

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

2.21.01.4 KB
Original Source

Options

public struct Options : Equatable, Hashable

Undocumented

`

                enabledDevices
                `

A type indicating which devices the Core ML delegate should be enabled for. The default value is .neuralEngine indicating that the delegate is enabled for Neural Engine devices only.

Declaration

Swift

public var enabledDevices: EnabledDevices

`

                coreMLVersion
                `

Target Core ML version for the model conversion. When it’s not set, Core ML version will be set to highest available version for the platform.

Declaration

Swift

public var coreMLVersion: Int

`

                maxDelegatedPartitions
                `

The maximum number of Core ML delegate partitions created. Each graph corresponds to one delegated node subset in the TFLite model. The default value is 0 indicating that all possible partitions are delegated.

Declaration

Swift

public var maxDelegatedPartitions: Int

`

                minNodesPerPartition
                `

The minimum number of nodes per partition to be delegated by the Core ML delegate. The default value is 2.

Declaration

Swift

public var minNodesPerPartition: Int

`

                init()
                `

Creates a new instance with the default values.

Declaration

Swift

public init()