diff --git a/ggml/include/ggml.h b/ggml/include/ggml.h index 9c4e24023b5ad..86c29459a9ebb 100644 --- a/ggml/include/ggml.h +++ b/ggml/include/ggml.h @@ -602,9 +602,10 @@ extern "C" { char name[GGML_MAX_NAME]; - void * extra; // extra things e.g. for ggml-cuda.cu + void * extra; // extra things for the backend e.g. for ggml-cuda.cu + void * user; // extra things for the user e.g. for python or node bindings - char padding[8]; + char padding[0]; }; static const size_t GGML_TENSOR_SIZE = sizeof(struct ggml_tensor);