View source: R/nn_functional.R
| ggml_embedding | R Documentation |
Create an Embedding Layer Object
ggml_embedding(vocab_size, dim, name = NULL, trainable = TRUE)
vocab_size |
Number of distinct tokens. |
dim |
Embedding dimension. |
name |
Optional character name. |
trainable |
Logical. |
A ggml_layer object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.