| ggml_pop_layer | R Documentation |
Removes the last layer from the model. The model must not be compiled.
ggml_pop_layer(model)
model |
A ggml_sequential_model object |
The model with the last layer removed.
model <- ggml_model_sequential() |>
ggml_layer_dense(64, activation = "relu") |>
ggml_layer_dense(10, activation = "softmax")
model <- ggml_pop_layer(model)
length(model$layers) # 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.