]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ggml, common, examples, tests : fixed type arguments in printf (llama/5528)
authorHerman Semenov <redacted>
Sun, 18 Feb 2024 16:20:12 +0000 (16:20 +0000)
committerGeorgi Gerganov <redacted>
Mon, 19 Feb 2024 13:53:24 +0000 (15:53 +0200)
ggml.c

diff --git a/ggml.c b/ggml.c
index aefcda6d42a0dc36d9c24c2d77445b5b10e8d8b7..8224652a9cc50ef812fb1ebed53c8ea25814001a 100644 (file)
--- a/ggml.c
+++ b/ggml.c
@@ -17909,7 +17909,7 @@ struct ggml_cgraph * ggml_graph_import(const char * fname, struct ggml_context *
 
                 ptr += ggml_nbytes(tensor);
 
-                fprintf(stderr, "%s: loaded leaf %d: '%16s', %9zu bytes\n", __func__, i, tensor->name, ggml_nbytes(tensor));
+                fprintf(stderr, "%s: loaded leaf %u: '%16s', %9zu bytes\n", __func__, i, tensor->name, ggml_nbytes(tensor));
             }
         }
 
@@ -18012,7 +18012,7 @@ struct ggml_cgraph * ggml_graph_import(const char * fname, struct ggml_context *
 
                 result->nodes[i] = tensor;
 
-                fprintf(stderr, "%s: loaded node %d: '%16s', %9zu bytes\n", __func__, i, tensor->name, ggml_nbytes(tensor));
+                fprintf(stderr, "%s: loaded node %u: '%16s', %9zu bytes\n", __func__, i, tensor->name, ggml_nbytes(tensor));
             }
         }
     }