fix name of copies
This commit is contained in:
parent
b19334ec76
commit
48125f7221
1 changed files with 3 additions and 3 deletions
6
ggml.c
6
ggml.c
|
@ -5909,10 +5909,10 @@ struct ggml_tensor * ggml_cpy_impl(
|
||||||
|
|
||||||
// make a view of the destination
|
// make a view of the destination
|
||||||
struct ggml_tensor * result = ggml_view_tensor(ctx, b);
|
struct ggml_tensor * result = ggml_view_tensor(ctx, b);
|
||||||
if (strlen(a->name) > 0) {
|
if (strlen(b->name) > 0) {
|
||||||
ggml_format_name(result, "%s (copy of %s)", a->name, b->name);
|
ggml_format_name(result, "%s (copy of %s)", b->name, a->name);
|
||||||
} else {
|
} else {
|
||||||
ggml_format_name(result, "%s (copy)", b->name);
|
ggml_format_name(result, "%s (copy)", a->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
result->op = GGML_OP_CPY;
|
result->op = GGML_OP_CPY;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue