powered by
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)
NULL (invisible)
GGML context
Logical, TRUE to disable allocation
# \donttest{ 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) # }
Run the code above in your browser using DataLab