Skip to content

Commit 36d632f

Browse files
danbevCISC
andcommitted
ggml : WebGPU added cases for TRANSPOSE and RESHAPE operations
This commit add GGML_OP_TRANSPOSE and GGML_OP_RESHAPE cases to the ggml_webgpu_encode_node function in ggml-webgpu.cpp. The actual operation are not implemented yet, and are left as TODOs. Co-authored-by: Sigbjørn Skjæret <[email protected]>
1 parent ea8412f commit 36d632f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ggml/src/ggml-webgpu/ggml-webgpu.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,12 @@ static bool ggml_webgpu_encode_node(webgpu_context ctx, ggml_tensor * node) {
627627
ggml_webgpu_mul_mat(ctx, src0, src1, node);
628628
break;
629629
}
630+
case GGML_OP_TRANSPOSE:
631+
case GGML_OP_RESHAPE:
632+
{
633+
// TODO: implement these operations
634+
break;
635+
}
630636
default:
631637
return false;
632638
}

0 commit comments

Comments
 (0)