| ggml_tensor_type | R Documentation |
Returns the data type of a tensor as an integer code
ggml_tensor_type(tensor)
tensor |
Tensor pointer |
Integer type code (0 = F32, 1 = F16, etc.)
ctx <- ggml_init(1024 * 1024)
t <- ggml_new_tensor_1d(ctx, GGML_TYPE_F32, 10)
ggml_tensor_type(t)
ggml_free(ctx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.