bug fix for ggml_compute_forward_get_rows_back_f32
the result should be set to zero, not to whatever data is in opt0
This commit is contained in:
parent
3164f93381
commit
765b290010
1 changed files with 5 additions and 1 deletions
6
ggml.c
6
ggml.c
|
@ -11016,7 +11016,11 @@ static void ggml_compute_forward_get_rows_back_f32(
|
||||||
GGML_ASSERT(ggml_is_contiguous(opt0));
|
GGML_ASSERT(ggml_is_contiguous(opt0));
|
||||||
GGML_ASSERT(ggml_is_contiguous(dst));
|
GGML_ASSERT(ggml_is_contiguous(dst));
|
||||||
|
|
||||||
ggml_compute_forward_dup_same_cont(params, opt0, dst);
|
// ggml_compute_forward_dup_same_cont(params, opt0, dst);
|
||||||
|
|
||||||
|
if (params->type == GGML_TASK_INIT) {
|
||||||
|
memset(dst->data, 0, ggml_nbytes(dst));
|
||||||
|
}
|
||||||
|
|
||||||
if (params->type == GGML_TASK_INIT || params->type == GGML_TASK_FINALIZE) {
|
if (params->type == GGML_TASK_INIT || params->type == GGML_TASK_FINALIZE) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue