| ggml_tensor_shape | R Documentation |
Returns the shape of a tensor as a numeric vector of 4 elements (ne0, ne1, ne2, ne3)
ggml_tensor_shape(tensor)
tensor |
Tensor pointer |
Numeric vector of length 4 with dimensions
ctx <- ggml_init(1024 * 1024)
t <- ggml_new_tensor_2d(ctx, GGML_TYPE_F32, 10, 20)
ggml_tensor_shape(t)
ggml_free(ctx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.