-
Notifications
You must be signed in to change notification settings - Fork 966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How is the data allocated by ggml_allocr_alloc align? #579
Comments
Basically, instead of aligning every memory address, which may be hard to reverse when freeing the memory, it aligns the base address of the buffer (in |
OK. I see. |
I am reading about the allocation implementation. It allocates additional size but sets the tensor->data as the base pointer rather than a pointer after alignment. I wonder if the tensor->data is aligned or if the pointer is aligned later in execution.
The text was updated successfully, but these errors were encountered: