From: Radoslav Gerganov Date: Fri, 30 May 2025 06:11:09 +0000 (+0300) Subject: ggml : remove ggml_graph_import and ggml_graph_export declarations (#1247) X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=62042b741f0a7ac8c5a33d8d98129a9dcb6bbdd9;p=pkg%2Fggml%2Fsources%2Fggml ggml : remove ggml_graph_import and ggml_graph_export declarations (#1247) The implementation is already deleted with commit 9d0762e. closes: #1235 --- diff --git a/examples/python/ggml/__init__.pyi b/examples/python/ggml/__init__.pyi index 0c277098..5df2a882 100644 --- a/examples/python/ggml/__init__.pyi +++ b/examples/python/ggml/__init__.pyi @@ -934,15 +934,9 @@ class lib: GGML_API void ggml_graph_dump_dot(const struct ggml_cgraph * gb, const struct ggml_cgraph * gf, const char * filename); """ ... - def ggml_graph_export(cgraph: ffi.CData, fname: ffi.CData) -> None: - """ GGML_API void ggml_graph_export(const struct ggml_cgraph * cgraph, const char * fname);""" - ... def ggml_graph_get_tensor(cgraph: ffi.CData, name: ffi.CData) -> ffi.CData: """ GGML_API struct ggml_tensor * ggml_graph_get_tensor(struct ggml_cgraph * cgraph, const char * name);""" ... - def ggml_graph_import(fname: ffi.CData, ctx_data: ffi.CData, ctx_eval: ffi.CData) -> ffi.CData: - """ GGML_API struct ggml_cgraph ggml_graph_import(const char * fname, struct ggml_context ** ctx_data, struct ggml_context ** ctx_eval);""" - ... def ggml_graph_overhead() -> int: """ GGML_API size_t ggml_graph_overhead(void);""" ... diff --git a/include/ggml.h b/include/ggml.h index bff7dea3..5af76e8d 100644 --- a/include/ggml.h +++ b/include/ggml.h @@ -2086,9 +2086,6 @@ extern "C" { GGML_API struct ggml_tensor * ggml_graph_get_grad (const struct ggml_cgraph * cgraph, const struct ggml_tensor * node); GGML_API struct ggml_tensor * ggml_graph_get_grad_acc(const struct ggml_cgraph * cgraph, const struct ggml_tensor * node); - GGML_API void ggml_graph_export(const struct ggml_cgraph * cgraph, const char * fname); - GGML_API struct ggml_cgraph * ggml_graph_import(const char * fname, struct ggml_context ** ctx_data, struct ggml_context ** ctx_eval); - // print info and performance information for the graph GGML_API void ggml_graph_print(const struct ggml_cgraph * cgraph);