Learn R Programming

ggmlR (version 0.6.1)

ggml_get_mem_size: Get Context Memory Size

Description

Returns the total memory pool size of the context

Usage

ggml_get_mem_size(ctx)

Value

Total memory size in bytes

Arguments

ctx

GGML context

Examples

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

Run the code above in your browser using DataLab