]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
ggml : fix interpolate with align-corners and ne=1 (llama/16700)
authorAcly <redacted>
Mon, 27 Oct 2025 20:50:22 +0000 (21:50 +0100)
committerGeorgi Gerganov <redacted>
Sun, 9 Nov 2025 21:38:03 +0000 (23:38 +0200)
commitbcda7c3e588e4247a4101b24478275d98a3aa823
treedd2aa466ddf46718dc97ac3e91858267b3b798aa
parent1471b1fda76828df03281e8288a20304755916af
ggml : fix interpolate with align-corners and ne=1 (llama/16700)

* ggml : fix interpolate with align-corners and ne=1

* avoid division by zero if one of the spatial dimensions is 1
* cpu, cuda, opencl returned correct result anyway due to clamp
* vulkan didn't clamp for align-corners so results were broken

* fix clang warning
ggml/src/ggml-cpu/ops.cpp
ggml/src/ggml-cuda/upscale.cu
ggml/src/ggml-opencl/ggml-opencl.cpp
ggml/src/ggml-vulkan/ggml-vulkan.cpp
ggml/src/ggml-vulkan/vulkan-shaders/upscale.comp