FFmpeg
Loading...
Searching...
No Matches
DNNAsyncExecModule Struct Reference

Common Async Execution Mechanism for the DNN Backends. More...

#include <dnn_backend_common.h>

Data Fields

int(* start_inference )(void *request)
 Synchronous inference function for the backend with corresponding request item as the argument.
 
void(* callback )(void *args)
 Completion Callback for the backend.
 
void * args
 Argument for the execution functions.
 
pthread_t thread_id
 
int thread_started
 

Detailed Description

Common Async Execution Mechanism for the DNN Backends.

Definition at line 66 of file dnn_backend_common.h.

Field Documentation

◆ start_inference

int(* DNNAsyncExecModule::start_inference) (void *request)

Synchronous inference function for the backend with corresponding request item as the argument.

Definition at line 71 of file dnn_backend_common.h.

Referenced by async_thread_routine(), dnn_load_model_onnx(), dnn_load_model_tf(), dnn_load_model_th(), and ff_dnn_async_module_cleanup().

◆ callback

void(* DNNAsyncExecModule::callback) (void *args)

Completion Callback for the backend.

Expected argument type of callback must match that of the inference function.

Definition at line 78 of file dnn_backend_common.h.

Referenced by async_thread_routine(), dnn_load_model_onnx(), dnn_load_model_tf(), dnn_load_model_th(), and ff_dnn_async_module_cleanup().

◆ args

void* DNNAsyncExecModule::args

Argument for the execution functions.

i.e. Request item for the backend.

Definition at line 84 of file dnn_backend_common.h.

Referenced by async_thread_routine(), dnn_load_model_onnx(), dnn_load_model_tf(), dnn_load_model_th(), and ff_dnn_async_module_cleanup().

◆ thread_id

pthread_t DNNAsyncExecModule::thread_id

◆ thread_started

int DNNAsyncExecModule::thread_started

The documentation for this struct was generated from the following file: