]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
vulkan: fix step operator for 0 input (#25036)
authorRuben Ortlam <redacted>
Sat, 27 Jun 2026 08:57:31 +0000 (10:57 +0200)
committerGitHub <redacted>
Sat, 27 Jun 2026 08:57:31 +0000 (10:57 +0200)
ggml/src/ggml-vulkan/vulkan-shaders/unary.comp

index c62bce8255557599f2f6244afd2c4363d93bf918..5ee5275d278228b96a93fef659f1977c4ed09252 100644 (file)
@@ -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) {