Skip to content

Commit e201588

Browse files
committed
Tiling: force zero-initialize output
1 parent 9036ee5 commit e201588

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
@@ -609,6 +609,8 @@ typedef std::function<void(ggml_tensor*, ggml_tensor*, bool)> on_tile_process;
609609

610610
// Tiling
611611
__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) {
612+
output = ggml_set_f32(output, 0);
613+
612614
int input_width = (int)input->ne[0];
613615
int input_height = (int)input->ne[1];
614616
int output_width = (int)output->ne[0];

0 commit comments

Comments
 (0)