We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd745ba commit d8377a0Copy full SHA for d8377a0
ggml/include/gguf.h
@@ -76,8 +76,15 @@ extern "C" {
76
struct ggml_context ** ctx;
77
};
78
79
+ struct gguf_tensor_shape {
80
+ int64_t ne[GGML_MAX_DIMS];
81
+ };
82
+
83
+ typedef bool (*tensor_shape_read_cb_t)(const int64_t* ne, uint32_t n_dims, struct gguf_tensor_shape* shape);
84
85
GGML_API struct gguf_context * gguf_init_empty(void);
86
GGML_API struct gguf_context * gguf_init_from_file(const char * fname, struct gguf_init_params params);
87
+ GGML_API struct gguf_context * gguf_init_from_file_ext(const char * fname, struct gguf_init_params params, tensor_shape_read_cb_t on_tensor_shape_read);
88
//GGML_API struct gguf_context * gguf_init_from_buffer(..);
89
90
GGML_API void gguf_free(struct gguf_context * ctx);
0 commit comments