| ggml_new_i32 | R Documentation |
Creates a 1-element tensor containing a single integer value. Useful for indices, counters, and other scalar integer operations.
ggml_new_i32(ctx, value)
ctx |
GGML context |
value |
Integer value |
Tensor pointer (1-element I32 tensor)
ctx <- ggml_init(1024 * 1024)
scalar <- ggml_new_i32(ctx, 42)
ggml_get_i32(scalar)
ggml_free(ctx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.