powered by
Helper function to estimate memory needed for a tensor
ggml_estimate_memory(type = GGML_TYPE_F32, ne0, ne1 = 1, ne2 = 1, ne3 = 1)
Estimated memory in bytes
Tensor type (GGML_TYPE_F32, etc)
Size of dimension 0
Size of dimension 1 (optional)
Size of dimension 2 (optional)
Size of dimension 3 (optional)
# \donttest{ # For 1000x1000 F32 matrix ggml_estimate_memory(GGML_TYPE_F32, 1000, 1000) # }
Run the code above in your browser using DataLab