> -----Original Message-----
> From: Raja Rathour via ffmpeg-devel <[email protected]>
> Sent: Tuesday, January 20, 2026 10:10 PM
> To: [email protected]
> Cc: Raja Rathour <[email protected]>
> Subject: [FFmpeg-devel] [PATCH 1/4] avfilter/dnn_backend_torch: implement
> common async infrastructure
>
> ---
> libavfilter/dnn/dnn_backend_torch.cpp | 354 ++++++++------------------
> 1 file changed, 113 insertions(+), 241 deletions(-)
>
> diff --git a/libavfilter/dnn/dnn_backend_torch.cpp
> b/libavfilter/dnn/dnn_backend_torch.cpp
> index 33809bf983..4c781cc0b6 100644
> --- a/libavfilter/dnn/dnn_backend_torch.cpp
> +++ b/libavfilter/dnn/dnn_backend_torch.cpp
> @@ -25,10 +25,6 @@
>
> #include <torch/torch.h>
> #include <torch/script.h>
> -#include <thread>
> -#include <mutex>
> -#include <condition_variable>
> -#include <atomic>
What's the relationship between this patch set and your previous patch: [PATCH
v3] avfilter/dnn_backend_torch: enable async execution, memory safety & dynamic
shapes?
>
> extern "C" {
> #include "dnn_io_proc.h"
> @@ -46,11 +42,6 @@ typedef struct THModel {
> SafeQueue *request_queue;
> Queue *task_queue;
> Queue *lltask_queue;
> - SafeQueue *pending_queue; ///< requests waiting for inference
> - std::thread *worker_thread; ///< background worker thread
> - std::mutex *mutex; ///< mutex for the condition variable
> - std::condition_variable *cond; ///< condition variable for worker wakeup
> - std::atomic<bool> worker_stop; ///< signal for thread exit
> } THModel;
>
> typedef struct THInferRequest {
> @@ -64,7 +55,6 @@ typedef struct THRequestItem {
> DNNAsyncExecModule exec_module;
> } THRequestItem;
>
> -
Let's focus on the patch purpose, and don't do other changes in the same patch.
_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]