Spaces:
Sleeping
Sleeping
ggml : fix typo in example usage ggml_gallocr_new (ggml/984)
Browse files
ggml/include/ggml-alloc.h
CHANGED
|
@@ -24,7 +24,7 @@ GGML_API void ggml_tallocr_alloc(struct ggml_tallocr * talloc, st
|
|
| 24 |
// Graph allocator
|
| 25 |
/*
|
| 26 |
Example usage:
|
| 27 |
-
ggml_gallocr_t galloc = ggml_gallocr_new(
|
| 28 |
|
| 29 |
// optional: create a worst-case graph and reserve the buffers to avoid reallocations
|
| 30 |
ggml_gallocr_reserve(galloc, build_graph(max_batch));
|
|
|
|
| 24 |
// Graph allocator
|
| 25 |
/*
|
| 26 |
Example usage:
|
| 27 |
+
ggml_gallocr_t galloc = ggml_gallocr_new(ggml_backend_cpu_buffer_type());
|
| 28 |
|
| 29 |
// optional: create a worst-case graph and reserve the buffers to avoid reallocations
|
| 30 |
ggml_gallocr_reserve(galloc, build_graph(max_batch));
|