From: Ruben Ortlam Date: Sat, 27 Jun 2026 08:57:31 +0000 (+0200) Subject: vulkan: fix step operator for 0 input (#25036) X-Git-Tag: upstream/0.0.10438~613 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=0b6529d818608304b277c1db668e8799a467c32d;p=pkg%2Fggml%2Fsources%2Fllama.cpp vulkan: fix step operator for 0 input (#25036) --- diff --git a/ggml/src/ggml-vulkan/vulkan-shaders/unary.comp b/ggml/src/ggml-vulkan/vulkan-shaders/unary.comp index c62bce825..5ee5275d2 100644 --- a/ggml/src/ggml-vulkan/vulkan-shaders/unary.comp +++ b/ggml/src/ggml-vulkan/vulkan-shaders/unary.comp @@ -42,7 +42,7 @@ float op_leaky_relu(float x) { } float op_step(float x) { - return x >= 0.0f ? 1.0f : 0.0f; + return x > 0.0f ? 1.0f : 0.0f; } float op_tanh(float x) {