Skip to content

Commit 9b365e8

Browse files
committed
Revert "gguf: support loading tensors which n_dims > GGML_MAX_DIMS"
This reverts commit d8377a0.
1 parent 6b71242 commit 9b365e8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

ggml/include/gguf.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,8 @@ extern "C" {
7676
struct ggml_context ** ctx;
7777
};
7878

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-
8579
GGML_API struct gguf_context * gguf_init_empty(void);
8680
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);
8881
//GGML_API struct gguf_context * gguf_init_from_buffer(..);
8982

9083
GGML_API void gguf_free(struct gguf_context * ctx);

0 commit comments

Comments
 (0)