From f9282c660c10dec4487d434549bdb707a9cd9f37 Mon Sep 17 00:00:00 2001 From: James Contini Date: Sun, 12 Oct 2025 13:41:41 -0700 Subject: [PATCH] removed unnecesarry checking if node->src[1] exists for unary operators --- ggml/src/ggml-webgpu/ggml-webgpu.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ggml/src/ggml-webgpu/ggml-webgpu.cpp b/ggml/src/ggml-webgpu/ggml-webgpu.cpp index 46b1b14f42..6a4d520203 100644 --- a/ggml/src/ggml-webgpu/ggml-webgpu.cpp +++ b/ggml/src/ggml-webgpu/ggml-webgpu.cpp @@ -2294,8 +2294,7 @@ static bool ggml_backend_webgpu_device_supports_op(ggml_backend_dev_t dev, const case GGML_UNARY_OP_EXP: case GGML_UNARY_OP_GELU_ERF: case GGML_UNARY_OP_XIELU: - supports_op = supports_op = (op->type == GGML_TYPE_F32 || op->type == GGML_TYPE_F16) && (src0->type == op->type) && - (src1 ? (src1->type == op->type) : true); + supports_op = supports_op = (op->type == GGML_TYPE_F32 || op->type == GGML_TYPE_F16) && (src0->type == op->type); break; case GGML_UNARY_OP_COUNT: default: