ggml : ggml_repeat always creates new tensor
This commit is contained in:
parent
99bb26078f
commit
af4bbcc873
1 changed files with 0 additions and 4 deletions
4
ggml.c
4
ggml.c
|
@ -5555,10 +5555,6 @@ struct ggml_tensor * ggml_repeat(
|
||||||
is_node = true;
|
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);
|
struct ggml_tensor * result = ggml_new_tensor(ctx, a->type, b->n_dims, b->ne);
|
||||||
|
|
||||||
result->op = GGML_OP_REPEAT;
|
result->op = GGML_OP_REPEAT;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue