Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: "Guo, Yejun via ffmpeg-devel" <ffmpeg-devel@ffmpeg.org>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Cc: Raja Rathour <imraja729@gmail.com>, "Guo, Yejun" <yejun.guo@intel.com>
Subject: [FFmpeg-devel] Re: [PATCH 1/4] avfilter/dnn_backend_torch: implement common async infrastructure
Date: Wed, 21 Jan 2026 02:08:51 +0000
Message-ID: <PH7PR11MB595762191EBE71531684FE53F196A@PH7PR11MB5957.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20260120140939.32403-1-imraja729@gmail.com>



> -----Original Message-----
> From: Raja Rathour via ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
> Sent: Tuesday, January 20, 2026 10:10 PM
> To: ffmpeg-devel@ffmpeg.org
> Cc: Raja Rathour <imraja729@gmail.com>
> 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 -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org

      parent reply	other threads:[~2026-01-21  2:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-20 14:09 [FFmpeg-devel] " Raja Rathour via ffmpeg-devel
2026-01-20 14:09 ` [FFmpeg-devel] [PATCH 2/4] avfilter/dnn_backend_torch: fix memory leak with persistent input buffer Raja Rathour via ffmpeg-devel
2026-01-20 14:09 ` [FFmpeg-devel] [PATCH 3/4] avfilter/dnn_backend_torch: add support for dynamic input shapes Raja Rathour via ffmpeg-devel
2026-01-20 14:09 ` [FFmpeg-devel] [PATCH 4/4] avfilter/dnn_backend_torch: improve device selection and error handling Raja Rathour via ffmpeg-devel
2026-01-21  2:08 ` Guo, Yejun via ffmpeg-devel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=PH7PR11MB595762191EBE71531684FE53F196A@PH7PR11MB5957.namprd11.prod.outlook.com \
    --to=ffmpeg-devel@ffmpeg.org \
    --cc=imraja729@gmail.com \
    --cc=yejun.guo@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git