]> git.djapps.eu Git - pkg/ggml/sources/ggml/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>
Sat, 1 Nov 2025 07:41:35 +0000 (09:41 +0200)
commitda6b57bfa70b5241c8238593820e7afd63b583b7
tree44f9e04cf89698e1bb7a5ee937d485fbcc5406a4
parent006482f430a8de0aca777dc344c152b407d1df1b
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
src/ggml-cpu/ops.cpp
src/ggml-cuda/upscale.cu
src/ggml-opencl/ggml-opencl.cpp
src/ggml-vulkan/ggml-vulkan.cpp
src/ggml-vulkan/vulkan-shaders/upscale.comp
tests/test-backend-ops.cpp