tensorflow/lite/g3doc/api_docs/swift/Classes/Interpreter/Options.html
public struct Options : Equatable, Hashable
Options for configuring the Interpreter.
`
threadCount
`
The maximum number of CPU threads that the interpreter should run on. The default is nil indicating that the Interpreter will decide the number of threads to use.
Swift
public var threadCount: Int?
`
isXNNPackEnabled
`
Indicates whether an optimized set of floating point CPU kernels, provided by XNNPACK, is enabled.
Experiment
Enabling this flag will enable use of a new, highly optimized set of CPU kernels provided via the XNNPACK delegate. Currently, this is restricted to a subset of floating point operations. Eventually, we plan to enable this by default, as it can provide significant performance benefits for many classes of floating point models. See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/delegates/xnnpack/README.md for more details.
Important
Things to keep in mind when enabling this flag:
Warning
This is an experimental interface that is subject to change.
Swift
public var isXNNPackEnabled: Bool
`
init()
`
Creates a new instance with the default values.
Swift
public init()