mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 02:44:36 +00:00
ggml : check ggml_add src1 type (ggml/708)
Co-authored-by: Judd <foldl@boxvest.com>
This commit is contained in:
parent
35a2ee9143
commit
e976423005
7
ggml.c
7
ggml.c
@ -7498,7 +7498,12 @@ static void ggml_compute_forward_add(
|
|||||||
switch (src0->type) {
|
switch (src0->type) {
|
||||||
case GGML_TYPE_F32:
|
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;
|
} break;
|
||||||
case GGML_TYPE_F16:
|
case GGML_TYPE_F16:
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user