| ggml_backend_tensor_set_data | R Documentation |
Sets tensor data using the backend API. This works with tensors allocated on any backend, not just CPU.
ggml_backend_tensor_set_data(tensor, data, offset = 0)
tensor |
Tensor pointer |
data |
R vector with data to set |
offset |
Byte offset (default: 0) |
Integer and logical data are accepted for float tensors and
converted element by element to float (an integer NA becomes
NaN). An I32 tensor (token indices, say) takes
integers or whole-valued doubles; NA, fractions and values outside
the 32-bit range stop with an error rather than being truncated.
No return value, called for side effects
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.