浏览代码

ggml : fix ggml_gallocr_ptr type (ggml/1205)

Diego Devesa 9 月之前
父节点
当前提交
4254bb4951
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ggml/include/ggml-cpp.h

+ 1 - 1
ggml/include/ggml-cpp.h

@@ -24,7 +24,7 @@ typedef std::unique_ptr<gguf_context, gguf_context_deleter> gguf_context_ptr;
 
 struct ggml_gallocr_deleter { void operator()(ggml_gallocr_t galloc) { ggml_gallocr_free(galloc); } };
 
-typedef std::unique_ptr<ggml_gallocr_t, ggml_gallocr_deleter> ggml_gallocr_ptr;
+typedef std::unique_ptr<ggml_gallocr, ggml_gallocr_deleter> ggml_gallocr_ptr;
 
 // ggml-backend