| ggml_n_dims | R Documentation |
Returns the number of dimensions of a tensor
ggml_n_dims(tensor)
tensor |
Tensor pointer |
Integer number of dimensions (1-4)
ctx <- ggml_init(1024 * 1024)
t <- ggml_new_tensor_2d(ctx, GGML_TYPE_F32, 10, 20)
ggml_n_dims(t)
ggml_free(ctx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.