• Jesse Gross's avatar
    ggml-backend: Let GGML allocate context memory · 01d9a468
    Jesse Gross authored
    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.
    01d9a468
ggml.go 14.5 KB