FFmpeg
Data Fields
THModel Struct Reference

Data Fields

DNNModel model
 
DnnContextctx
 
torch::jit::Module * jit_model
 
SafeQueuerequest_queue
 
Queuetask_queue
 
Queuelltask_queue
 
SafeQueuepending_queue
 requests waiting for inference More...
 
std::thread * worker_thread
 background worker thread More...
 
std::mutex * mutex
 mutex for the condition variable More...
 
std::condition_variable * cond
 condition variable for worker wakeup More...
 
std::atomic< bool > worker_stop
 signal for thread exit More...
 

Detailed Description

Definition at line 42 of file dnn_backend_torch.cpp.

Field Documentation

◆ model

DNNModel THModel::model

◆ ctx

DnnContext* THModel::ctx

◆ jit_model

torch::jit::Module* THModel::jit_model

Definition at line 45 of file dnn_backend_torch.cpp.

Referenced by dnn_free_model_th(), dnn_load_model_th(), and th_start_inference().

◆ request_queue

SafeQueue* THModel::request_queue

◆ task_queue

Queue* THModel::task_queue

◆ lltask_queue

Queue* THModel::lltask_queue

◆ pending_queue

SafeQueue* THModel::pending_queue

requests waiting for inference

Definition at line 49 of file dnn_backend_torch.cpp.

Referenced by dnn_free_model_th(), dnn_load_model_th(), execute_model_th(), and th_worker_thread().

◆ worker_thread

std::thread* THModel::worker_thread

background worker thread

Definition at line 50 of file dnn_backend_torch.cpp.

Referenced by dnn_free_model_th(), and dnn_load_model_th().

◆ mutex

std::mutex* THModel::mutex

mutex for the condition variable

Definition at line 51 of file dnn_backend_torch.cpp.

Referenced by dnn_free_model_th(), dnn_load_model_th(), execute_model_th(), and th_worker_thread().

◆ cond

std::condition_variable* THModel::cond

condition variable for worker wakeup

Definition at line 52 of file dnn_backend_torch.cpp.

Referenced by dnn_free_model_th(), dnn_load_model_th(), execute_model_th(), and th_worker_thread().

◆ worker_stop

std::atomic<bool> THModel::worker_stop

signal for thread exit

Definition at line 53 of file dnn_backend_torch.cpp.

Referenced by dnn_free_model_th(), dnn_load_model_th(), and th_worker_thread().


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