Executor.create constructor

Executor.create(
  1. ForwardType type,
  2. BackendConfig config,
  3. int numThreads
)

Implementation

factory Executor.create(ForwardType type, BackendConfig config, int numThreads) {
  final p = C.mnn_executor_static_new_executor(type.value, config.ref, numThreads);
  return Executor.fromPointer(p);
}