Update ggml.c

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This commit is contained in:
slaren 2023-07-26 11:34:17 +02:00 committed by GitHub
parent 97110251b9
commit 5c19dd3eef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
ggml.c
View file

@ -4535,10 +4535,10 @@ static struct ggml_object * ggml_new_object( struct ggml_context * ctx, enum ggm
}
*obj_new = (struct ggml_object) {
.type = type,
.offs = cur_end + GGML_OBJECT_SIZE,
.size = size_needed,
.next = NULL,
.type = type,
};
ggml_assert_aligned(mem_buffer + obj_new->offs);