Skip to content

Commit 4335cdc

Browse files
committed
Tilling: force zero-initialize output
1 parent 14ecba9 commit 4335cdc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ggml_extend.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,8 @@ typedef std::function<void(ggml_tensor*, ggml_tensor*, bool)> on_tile_process;
620620

621621
// Tiling
622622
__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, bool scaled_out = true) {
623+
output = ggml_set_f32(output, 0);
624+
623625
int input_width = (int)input->ne[0];
624626
int input_height = (int)input->ne[1];
625627
int output_width = (int)output->ne[0];

0 commit comments

Comments
 (0)