]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml : fix interpolate with align-corners and ne=1 (#16700)
authorAcly <redacted>
Mon, 27 Oct 2025 20:50:22 +0000 (21:50 +0100)
committerGitHub <redacted>
Mon, 27 Oct 2025 20:50:22 +0000 (21:50 +0100)
commit10640e31aab0819f31c1e1f2d008b019ee737232
tree603ee11a619d8d2187e5796a8e9e9517ae82586b
parent80d28f104c0c3e61c11d6af073642b246a9fc19c
ggml : fix interpolate with align-corners and ne=1 (#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
tests/test-backend-ops.cpp