From 15bd7188a1bc77c02b71eb6f89414eae2f10e9b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20du=20Hamel?= Date: Tue, 17 Jun 2025 16:56:14 +0200 Subject: [PATCH] Tiling: force zero-initialize output --- ggml_extend.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ggml_extend.hpp b/ggml_extend.hpp index c5913be4d..234a4d4e4 100644 --- a/ggml_extend.hpp +++ b/ggml_extend.hpp @@ -597,6 +597,8 @@ typedef std::function on_tile_process; // Tiling __STATIC_INLINE__ void sd_tiling(ggml_tensor* input, ggml_tensor* output, const int scale, const int tile_size, const float tile_overlap_factor, on_tile_process on_processing) { + output = ggml_set_f32(output, 0); + int input_width = (int)input->ne[0]; int input_height = (int)input->ne[1]; int output_width = (int)output->ne[0];