FFmpeg
Data Fields
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. More...
 
void(* callback )(void *args)
 Completion Callback for the backend. More...
 
void * args
 Argument for the execution functions. More...
 

Detailed Description

Common Async Execution Mechanism for the DNN Backends.

Definition at line 58 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 63 of file dnn_backend_common.h.

Referenced by async_thread_routine(), ff_dnn_async_module_cleanup(), ff_dnn_load_model_tf(), and ff_dnn_start_inference_async().

◆ 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 70 of file dnn_backend_common.h.

Referenced by async_thread_routine(), ff_dnn_async_module_cleanup(), ff_dnn_load_model_tf(), and ff_dnn_start_inference_async().

◆ args

void* DNNAsyncExecModule::args

Argument for the execution functions.

i.e. Request item for the backend.

Definition at line 76 of file dnn_backend_common.h.

Referenced by async_thread_routine(), ff_dnn_async_module_cleanup(), ff_dnn_load_model_tf(), and ff_dnn_start_inference_async().


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