ggml_get_mem_size: Get Context Memory Size

View source: R/memory.R

ggml_get_mem_sizeR Documentation

Get Context Memory Size

Description

Returns the total memory pool size of the context

Usage

ggml_get_mem_size(ctx)

Arguments

ctx

GGML context

Value

Total memory size in bytes

Examples


ctx <- ggml_init(1024 * 1024)
ggml_get_mem_size(ctx)
ggml_free(ctx)


ggmlR documentation built on July 14, 2026, 1:08 a.m.