Skip to content

Commit e3b42d5

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

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
@@ -602,7 +602,8 @@ 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

607608
char padding[8];
608609
};

0 commit comments

Comments
 (0)