ggml-backend: Let GGML allocate context memory
Passing in a Go buffer is not safe because the garbage collector could free or move the memory while the context is still open. However, if we pass in the size and a nil pointer then GGML will allocate it from the C side.
Showing
Please register or sign in to comment