From ea46fd6948799c517e0346af2eae11ef0ddb8db4 Mon Sep 17 00:00:00 2001 From: stduhpf Date: Tue, 1 Jul 2025 17:01:29 +0200 Subject: [PATCH] fix: force zero-initialize output of tiling (#703) --- ggml_extend.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ggml_extend.hpp b/ggml_extend.hpp index e20fc4f..635b780 100644 --- a/ggml_extend.hpp +++ b/ggml_extend.hpp @@ -602,6 +602,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];