]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ggml : fix typo in example usage ggml_gallocr_new (ggml/984)
authorDaniel Bevenius <redacted>
Fri, 4 Oct 2024 13:46:18 +0000 (15:46 +0200)
committerGeorgi Gerganov <redacted>
Fri, 4 Oct 2024 15:50:05 +0000 (18:50 +0300)
ggml/include/ggml-alloc.h

index 0dff47d65cf86cb5409bf035d026561f06fbbe50..23600eea99cb8e17db5c6ff8ddd1eae8abb8ca19 100644 (file)
@@ -24,7 +24,7 @@ GGML_API void                ggml_tallocr_alloc(struct ggml_tallocr * talloc, st
 // Graph allocator
 /*
   Example usage:
-    ggml_gallocr_t galloc = ggml_gallocr_new(ggml_bacckend_cpu_buffer_type());
+    ggml_gallocr_t galloc = ggml_gallocr_new(ggml_backend_cpu_buffer_type());
 
     // optional: create a worst-case graph and reserve the buffers to avoid reallocations
     ggml_gallocr_reserve(galloc, build_graph(max_batch));