Skip to content

Commit

Permalink
ggml : check ggml_add src1 type (ggml/708)
Browse files Browse the repository at this point in the history
Co-authored-by: Judd <[email protected]>
  • Loading branch information
2 people authored and ggerganov committed Jan 27, 2024
1 parent 35a2ee9 commit e976423
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -7498,7 +7498,12 @@ static void ggml_compute_forward_add(
switch (src0->type) {
case GGML_TYPE_F32:
{
ggml_compute_forward_add_f32(params, src0, src1, dst);
if (src1->type == GGML_TYPE_F32) {
ggml_compute_forward_add_f32(params, src0, src1, dst);
}
else {
GGML_ASSERT(false);
}
} break;
case GGML_TYPE_F16:
{
Expand Down

0 comments on commit e976423

Please sign in to comment.