kompute : fix rope_f32 and scale ops (#5008)

This commit is contained in:
Georgi Gerganov 2024-01-18 18:49:39 +02:00 committed by GitHub
parent 02b9bafe29
commit 696faa8660
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 25 additions and 16 deletions

View file

@ -1540,7 +1540,8 @@ void ggml_vk_graph_compute(struct ggml_kompute_context * ctx, struct ggml_cgraph
} break;
case GGML_OP_SCALE:
{
const float scale = *(const float *) src1->data;
float scale; memcpy(&scale, dst->op_params, sizeof(float));
ggml_vk_scale(seq, id_src0, id_dst, off_src0, off_dst, ggml_nelements(dst), scale);
} break;
case GGML_OP_UNARY: