| ggml_set_no_alloc | R Documentation |
When enabled, tensor creation will not allocate memory for data. Useful for creating computation graphs without allocating storage.
ggml_set_no_alloc(ctx, no_alloc)
ctx |
GGML context |
no_alloc |
Logical, TRUE to disable allocation |
NULL (invisible)
ctx <- ggml_init(1024 * 1024)
ggml_set_no_alloc(ctx, TRUE)
ggml_get_no_alloc(ctx)
ggml_set_no_alloc(ctx, FALSE)
ggml_free(ctx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.