| ggml_init_auto | R Documentation |
Creates a context with automatically calculated size based on planned tensors.
ggml_init_auto(..., extra_mb = 10, type = GGML_TYPE_F32, no_alloc = FALSE)
... |
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) |
GGML context
ctx <- ggml_init_auto(mat1 = c(1000L, 1000L), mat2 = c(1000L, 1000L))
ggml_free(ctx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.