Learn R Programming

ggmlR (version 0.6.1)

ggml_used_mem: Get Used Memory

Description

Returns the amount of memory currently used in the context

Usage

ggml_used_mem(ctx)

Value

Used memory in bytes

Arguments

ctx

GGML context

Examples

Run this code
# \donttest{
ctx <- ggml_init(1024 * 1024)
a <- ggml_new_tensor_1d(ctx, GGML_TYPE_F32, 100)
ggml_used_mem(ctx)
ggml_free(ctx)
# }

Run the code above in your browser using DataLab