]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
simple : fix typo (#1319)
authorAN Long <redacted>
Sat, 2 Aug 2025 14:28:28 +0000 (23:28 +0900)
committerGitHub <redacted>
Sat, 2 Aug 2025 14:28:28 +0000 (17:28 +0300)
examples/simple/simple-backend.cpp

index 5ec3e5f7203f698ed2f4d3d826111a15ee162b18..ffbe1ad771a6a2a818abc89eaa47ff6d3edbb00f 100644 (file)
@@ -99,7 +99,7 @@ struct ggml_cgraph * build_graph(const simple_model& model) {
     struct ggml_init_params params0 = {
         /*.mem_size   =*/ buf_size,
         /*.mem_buffer =*/ buf.data(),
-        /*.no_alloc   =*/ true, // the tensors will be allocated later by ggml_allocr_alloc_graph()
+        /*.no_alloc   =*/ true, // the tensors will be allocated later by ggml_gallocr_alloc_graph()
     };
 
     // create a temporally context to build the graph