View source: R/tensors.R View source: R/ggml.R
| ggml_nbytes | R Documentation |
Get number of bytes
Get Number of Bytes
ggml_nbytes(tensor)
ggml_nbytes(tensor)
tensor |
Tensor |
Integer number of bytes
Integer number of bytes
ctx <- ggml_init(1024 * 1024)
tensor <- ggml_new_tensor_1d(ctx, GGML_TYPE_F32, 10)
ggml_nbytes(tensor)
ggml_free(ctx)
ctx <- ggml_init(1024 * 1024)
t <- ggml_new_tensor_1d(ctx, GGML_TYPE_F32, 10)
ggml_nbytes(t)
ggml_free(ctx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.