]> git.djapps.eu Git - pkg/ggml/sources/ggml/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:52:51 +0000 (15:52 +0200)
src/ggml.c

index aefcda6d42a0dc36d9c24c2d77445b5b10e8d8b7..8224652a9cc50ef812fb1ebed53c8ea25814001a 100644 (file)
@@ -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));
             }
         }
     }