Skip to content

Commit 357ead0

Browse files
committed
ggml : add pointer to attach user data
1 parent 238005c commit 357ead0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ggml/include/ggml.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,9 +602,10 @@ extern "C" {
602602

603603
char name[GGML_MAX_NAME];
604604

605-
void * extra; // extra things e.g. for ggml-cuda.cu
605+
void * extra; // extra things for the backend e.g. for ggml-cuda.cu
606+
void * user; // extra things for the user e.g. for python or node bindings
606607

607-
char padding[8];
608+
char padding[0];
608609
};
609610

610611
static const size_t GGML_TENSOR_SIZE = sizeof(struct ggml_tensor);

0 commit comments

Comments
 (0)