View source: R/nn_functional.R
| ggml_model | R Documentation |
Assembles a ggml_functional_model from symbolic input and output
nodes produced by ggml_input() and ggml_layer_*() calls.
ggml_model(inputs, outputs)
inputs |
A |
outputs |
A |
A ggml_functional_model object.
x <- ggml_input(shape = 64L)
out <- x |> ggml_layer_dense(10, activation = "softmax")
model <- ggml_model(inputs = x, outputs = out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.