]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ggml : add helper debug printf in soft_max
authorGeorgi Gerganov <redacted>
Fri, 28 Apr 2023 14:58:44 +0000 (17:58 +0300)
committerGeorgi Gerganov <redacted>
Fri, 28 Apr 2023 14:59:08 +0000 (17:59 +0300)
ggml.c

diff --git a/ggml.c b/ggml.c
index 33fb1681eaec41f42cb073aa3318d896cc81ce8b..44293dac92668a2825125fa9f81e7f0f37ae3442 100644 (file)
--- a/ggml.c
+++ b/ggml.c
@@ -9257,6 +9257,7 @@ static void ggml_compute_forward_soft_max_f32(
 
         uint16_t scvt;
         for (int i = 0; i < nc; i++) {
+            //printf("p[%3d] = %8.4f\n", i, p[i]);
             if (p[i] == -INFINITY) {
                 p[i] = 0.0f;
             } else {