kompute : fix rope_f32 and scale ops (#5008)
This commit is contained in:
parent
02b9bafe29
commit
696faa8660
2 changed files with 25 additions and 16 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue