Learn R Programming

ggmlR (version 0.6.1)

ggml_set_no_alloc: Set No Allocation Mode

Description

When enabled, tensor creation will not allocate memory for data. Useful for creating computation graphs without allocating storage.

Usage

ggml_set_no_alloc(ctx, no_alloc)

Value

NULL (invisible)

Arguments

ctx

GGML context

no_alloc

Logical, TRUE to disable allocation

Examples

Run this code
# \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