powered by
Returns the amount of memory currently used in the context
ggml_used_mem(ctx)
Used memory in bytes
GGML context
# \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