ffmpeg/libavfilter/dnn
stevxiao 680f32c4c9
avfilter/dnn: add PyTorch version check for XPU initialization in torch backend
Starting with PyTorch 2.6, the hooks API was redesigned so it no longer depends on the device type.

As part of this change, the XPU initialization function was renamed from initXPU() to init().

Add version check to support both old and new LibTorch versions.

Signed-off-by: younengxiao <steven.xiao@amd.com>
2026-02-12 10:48:58 -05:00
..
dnn_backend_common.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
dnn_backend_common.h avfilter/dnn: Refactor DNN parameter configuration system 2024-05-18 19:44:50 +08:00
dnn_backend_openvino.c all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
dnn_backend_tf.c libavfilter/dnn/dnn_backend_tf: Remove redundant av_freep() to avoid double free 2025-08-13 19:50:26 +08:00
dnn_backend_torch.cpp avfilter/dnn: add PyTorch version check for XPU initialization in torch backend 2026-02-12 10:48:58 -05:00
dnn_interface.c all: fix whitespace/new-line issues 2025-08-03 13:48:47 +02:00
dnn_io_proc.c libavfilter/dnn_io_proc: Take step into consideration when crop frame 2024-04-04 14:26:57 +08:00
dnn_io_proc.h lavfi/dnn_io_proc: Return Specific Error Codes 2022-03-12 15:10:28 +08:00
Makefile libavfi/dnn: add LibTorch as one of DNN backend 2024-03-19 14:48:58 +08:00
queue.c Remove unnecessary avassert.h inclusions 2021-07-22 15:02:30 +02:00
queue.h lavfi/dnn: Common Function to Get Async Result in DNN Backends 2021-08-10 22:27:27 +08:00
safe_queue.c dnn/queue: remove prefix FF for Queue and SafeQueue 2021-01-22 08:28:13 +08:00
safe_queue.h lavfi/dnn/safe_queue.h: Add Documentation to SafeQueue 2021-04-27 10:01:20 +08:00