From af4bbcc87387884d3e0974a1992f9dfb76a2160d Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Wed, 23 Aug 2023 10:42:02 +0300 Subject: [PATCH] ggml : ggml_repeat always creates new tensor --- ggml.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ggml.c b/ggml.c index 2180ea0e2..c7cc72d48 100644 --- a/ggml.c +++ b/ggml.c @@ -5555,10 +5555,6 @@ struct ggml_tensor * ggml_repeat( is_node = true; } - if (ggml_are_same_shape(a, b) && !is_node) { - return a; - } - struct ggml_tensor * result = ggml_new_tensor(ctx, a->type, b->n_dims, b->ne); result->op = GGML_OP_REPEAT;