ggml : ggml_backend_graph_copy -> ggml_backend_graph_copy_state

ggml-ci
This commit is contained in:
Georgi Gerganov 2025-01-12 17:57:51 +02:00
parent afd40ea206
commit a97b3621cf
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
2 changed files with 6 additions and 6 deletions

View file

@ -323,7 +323,7 @@ extern "C" {
// Utils
//
struct ggml_backend_graph_copy {
struct ggml_backend_graph_copy_state {
ggml_backend_buffer_t buffer;
struct ggml_context * ctx_allocated;
struct ggml_context * ctx_unallocated;
@ -331,8 +331,8 @@ extern "C" {
};
// Copy a graph to a different backend
GGML_API struct ggml_backend_graph_copy ggml_backend_graph_copy_init(ggml_backend_t backend, struct ggml_cgraph * graph);
GGML_API void ggml_backend_graph_copy_free(struct ggml_backend_graph_copy copy);
GGML_API struct ggml_backend_graph_copy_state ggml_backend_graph_copy(ggml_backend_t backend, struct ggml_cgraph * graph);
GGML_API void ggml_backend_graph_copy_free(struct ggml_backend_graph_copy_state copy);
typedef bool (*ggml_backend_eval_callback)(int node_index, struct ggml_tensor * t1, struct ggml_tensor * t2, void * user_data);