bug fix in read_tensor_by_name
This commit is contained in:
parent
152cfaac36
commit
1f83343498
1 changed files with 1 additions and 1 deletions
|
@ -1526,7 +1526,7 @@ void read_tensor_by_name(struct ggml_tensor * dst, struct ggml_context * ctx, co
|
||||||
if (dst == NULL) {
|
if (dst == NULL) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
struct ggml_tensor * t = ggml_get_tensor(ctx, LLM_TENSOR_OPTIMIZER_ADAM_FIRST_MOMENTS);
|
struct ggml_tensor * t = ggml_get_tensor(ctx, name);
|
||||||
GGML_ASSERT(are_same_layout(dst, t));
|
GGML_ASSERT(are_same_layout(dst, t));
|
||||||
memcpy(dst->data, t->data, ggml_nbytes(t));
|
memcpy(dst->data, t->data, ggml_nbytes(t));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue