Skip to content

Commit 3ee194f

Browse files
authored
Update ggml.h
1 parent cc2983d commit 3ee194f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ggml/include/ggml.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
#define GGML_MAX_OP_PARAMS 64
224224

225225
#ifndef GGML_MAX_NAME
226-
# define GGML_MAX_NAME 64
226+
# define GGML_MAX_NAME 128
227227
#endif
228228

229229
#define GGML_DEFAULT_N_THREADS 4
@@ -2449,6 +2449,7 @@ extern "C" {
24492449

24502450
// manage tensor info
24512451
GGML_API void gguf_add_tensor(struct gguf_context * ctx, const struct ggml_tensor * tensor);
2452+
GGML_API void gguf_set_tensor_ndim(struct gguf_context * ctx, const char * name, int n_dim);
24522453
GGML_API void gguf_set_tensor_type(struct gguf_context * ctx, const char * name, enum ggml_type type);
24532454
GGML_API void gguf_set_tensor_data(struct gguf_context * ctx, const char * name, const void * data, size_t size);
24542455

0 commit comments

Comments
 (0)