| ggml_estimate_memory | R Documentation |
Helper function to estimate memory needed for a tensor
ggml_estimate_memory(type = GGML_TYPE_F32, ne0, ne1 = 1, ne2 = 1, ne3 = 1)
type |
Tensor type (GGML_TYPE_F32, etc) |
ne0 |
Size of dimension 0 |
ne1 |
Size of dimension 1 (optional) |
ne2 |
Size of dimension 2 (optional) |
ne3 |
Size of dimension 3 (optional) |
Estimated memory in bytes
# For 1000x1000 F32 matrix
ggml_estimate_memory(GGML_TYPE_F32, 1000, 1000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.