threads property

int? get threads

Configured CPU thread count, or null when the runtime default is used.

Implementation

int? get threads => _threads;
set threads (int threads)

Sets the number of CPU threads to use.

Implementation

set threads(int threads) {
  checkState(!_deleted, message: 'InterpreterOptions already deleted.');
  _threads = threads;
  tfliteBinding.TfLiteInterpreterOptionsSetNumThreads(_options, threads);
}