Skip to content

Commit af4bbcc

Browse files
committed
ggml : ggml_repeat always creates new tensor
1 parent 99bb260 commit af4bbcc

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ggml.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5555,10 +5555,6 @@ struct ggml_tensor * ggml_repeat(
55555555
is_node = true;
55565556
}
55575557

5558-
if (ggml_are_same_shape(a, b) && !is_node) {
5559-
return a;
5560-
}
5561-
55625558
struct ggml_tensor * result = ggml_new_tensor(ctx, a->type, b->n_dims, b->ne);
55635559

55645560
result->op = GGML_OP_REPEAT;

0 commit comments

Comments
 (0)