Learn R Programming

ggmlR (version 0.6.1)

ggml_init: Initialize GGML context

Description

Initialize GGML context

Usage

ggml_init(mem_size = 16 * 1024 * 1024, no_alloc = FALSE)

Value

GGML context pointer

Arguments

mem_size

Memory size in bytes

no_alloc

If TRUE, don't allocate memory for tensors (default: FALSE)

Examples

Run this code
# \donttest{
ctx <- ggml_init(1024 * 1024)
ggml_free(ctx)
# }

Run the code above in your browser using DataLab