| ggml_view_tensor | R Documentation |
Creates a view of the tensor (shares data, no copy)
ggml_view_tensor(ctx, src)
ctx |
GGML context |
src |
Source tensor |
View tensor (shares data with src)
ctx <- ggml_init(16 * 1024 * 1024)
a <- ggml_new_tensor_1d(ctx, GGML_TYPE_F32, 10)
view <- ggml_view_tensor(ctx, a)
# view shares data with a
ggml_free(ctx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.