Skip to content

Commit b05a487

Browse files
committed
squash! ggml : WebGPU added cases for TRANSPOSE and RESHAPE operations [no ci]
Move GGML_OP_TRANSPOSE and GGML_OP_RESHAPE to the other no-op cases.
1 parent adeb0b5 commit b05a487

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,8 @@ static bool ggml_webgpu_encode_node(webgpu_context ctx, ggml_tensor * node) {
611611
case GGML_OP_NONE:
612612
case GGML_OP_VIEW:
613613
case GGML_OP_PERMUTE:
614+
case GGML_OP_TRANSPOSE:
615+
case GGML_OP_RESHAPE:
614616
return false;
615617
case GGML_OP_CPY:
616618
{
@@ -627,11 +629,6 @@ static bool ggml_webgpu_encode_node(webgpu_context ctx, ggml_tensor * node) {
627629
ggml_webgpu_mul_mat(ctx, src0, src1, node);
628630
break;
629631
}
630-
case GGML_OP_TRANSPOSE:
631-
case GGML_OP_RESHAPE:
632-
{
633-
break;
634-
}
635632
default:
636633
return false;
637634
}

0 commit comments

Comments
 (0)