mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-26 03:14:35 +00:00
ggml : update comments [no ci]
This commit is contained in:
parent
119e0bc9ae
commit
f9968f661d
@ -2064,7 +2064,7 @@ extern "C" {
|
|||||||
// =================================================================================================
|
// =================================================================================================
|
||||||
// CPU-only API for ggml_cgraph
|
// CPU-only API for ggml_cgraph
|
||||||
//
|
//
|
||||||
// TODO: move as a separate backend
|
// TODO: move to the CPU backend
|
||||||
// NOTE: avoid using, will be removed
|
// NOTE: avoid using, will be removed
|
||||||
//
|
//
|
||||||
|
|
||||||
|
@ -751,10 +751,9 @@ GGML_CALL static ggml_backend_buffer_type_t ggml_backend_cpu_get_default_buffer_
|
|||||||
GGML_UNUSED(backend);
|
GGML_UNUSED(backend);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: this struct should no longer be needed
|
|
||||||
// instead, the new ggml_graph_work_init() + ggml_graph_work_free() API should be enough to replace this
|
|
||||||
// for now, keeping the implementation as it is, to avoid making a mistake
|
|
||||||
struct ggml_backend_plan_cpu {
|
struct ggml_backend_plan_cpu {
|
||||||
|
// TODO: move member from ggml_cgraph here when the public CPU-only API is removed
|
||||||
|
|
||||||
struct ggml_cgraph cgraph;
|
struct ggml_cgraph cgraph;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -774,6 +774,8 @@ struct ggml_cgraph {
|
|||||||
|
|
||||||
enum ggml_cgraph_eval_order order;
|
enum ggml_cgraph_eval_order order;
|
||||||
|
|
||||||
|
// TODO: after the CPU-only API is removed, we can move the members below to ggml_backend_plan_cpu
|
||||||
|
|
||||||
bool work_own;
|
bool work_own;
|
||||||
size_t work_size; // size of work buffer, calculated by `ggml_graph_plan()`
|
size_t work_size; // size of work buffer, calculated by `ggml_graph_plan()`
|
||||||
uint8_t * work_data; // work buffer, to be allocated by caller before calling to `ggml_graph_compute()`
|
uint8_t * work_data; // work buffer, to be allocated by caller before calling to `ggml_graph_compute()`
|
||||||
|
Loading…
Reference in New Issue
Block a user