mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-03-16 17:27:55 +01:00
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>