Learn R Programming

ggmlR (version 0.6.1)

ggml_init_auto: Create Context with Auto-sizing

Description

Creates a context with automatically calculated size based on planned tensors.

Usage

ggml_init_auto(..., extra_mb = 10, type = GGML_TYPE_F32, no_alloc = FALSE)

Value

GGML context

Arguments

...

Named arguments with tensor dimensions (integer vectors)

extra_mb

Extra megabytes to add (default: 10)

type

Tensor type (default: GGML_TYPE_F32)

no_alloc

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

Examples

Run this code
# \donttest{
ctx <- ggml_init_auto(mat1 = c(1000L, 1000L), mat2 = c(1000L, 1000L))
ggml_free(ctx)
# }

Run the code above in your browser using DataLab