]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
ggml : remove ggml_graph_import and ggml_graph_export declarations (#1247)
authorRadoslav Gerganov <redacted>
Fri, 30 May 2025 06:11:09 +0000 (09:11 +0300)
committerGitHub <redacted>
Fri, 30 May 2025 06:11:09 +0000 (09:11 +0300)
The implementation is already deleted with commit 9d0762e.

closes: #1235

examples/python/ggml/__init__.pyi
include/ggml.h

index 0c2770982da2624cb5c3bb51e8b021cef0bd52f7..5df2a88268a42579db7120b83613a03fdcfb097a 100644 (file)
@@ -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);"""
     ...
index bff7dea3a539bc7b2dde44c0eec6a75a16aa6b42..5af76e8d741bec966f8deec21599c3598d814c53 100644 (file)
@@ -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);