Back to Tensorflow

MetalDelegate

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

2.21.01.2 KB
Original Source

MetalDelegate

public final class MetalDelegate : Delegate

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
                `

The configuration options for the MetalDelegate.

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.

Declaration

Swift

public init(options: Options = Options())

Parameters

| options |

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

|

`

                Options
                `

Options for configuring the MetalDelegate.

Declaration

Swift

public struct Options : Equatable, Hashable