From 646e77638ed4b323845c3578d58ffc751a9f010e Mon Sep 17 00:00:00 2001 From: null-define <61399676+null-define@users.noreply.github.com> Date: Sat, 6 Apr 2024 16:51:48 +0800 Subject: [PATCH] fix: fix tiles_ctx not freed in sd_tiling (#219) --- ggml_extend.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ggml_extend.hpp b/ggml_extend.hpp index 70e1d17..b8008a3 100644 --- a/ggml_extend.hpp +++ b/ggml_extend.hpp @@ -484,6 +484,7 @@ __STATIC_INLINE__ void sd_tiling(ggml_tensor* input, ggml_tensor* output, const if (tile_count < num_tiles) { pretty_progress(num_tiles, num_tiles, last_time); } + ggml_free(tiles_ctx); } __STATIC_INLINE__ struct ggml_tensor* ggml_group_norm_32(struct ggml_context* ctx,