Skip to content

Commit 6f90c78

Browse files
committed
ggml : add pointer to attach user data
1 parent b9c3eef commit 6f90c78

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
@@ -623,9 +623,10 @@ extern "C" {
623623

624624
char name[GGML_MAX_NAME];
625625

626-
void * extra; // extra things e.g. for ggml-cuda.cu
626+
void * extra; // extra things for the backend e.g. for ggml-cuda.cu
627+
void * user; // extra things for the user e.g. for python or node bindings
627628

628-
char padding[8];
629+
char padding[0];
629630
};
630631

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

0 commit comments

Comments
 (0)