ggml_model: Create a Functional Model

View source: R/nn_functional.R

ggml_modelR Documentation

Create a Functional Model

Description

Assembles a ggml_functional_model from symbolic input and output nodes produced by ggml_input() and ggml_layer_*() calls.

Usage

ggml_model(inputs, outputs)

Arguments

inputs

A ggml_tensor_node or a list of them (model inputs).

outputs

A ggml_tensor_node or a list of them (model outputs).

Value

A ggml_functional_model object.

Examples


x   <- ggml_input(shape = 64L)
out <- x |> ggml_layer_dense(10, activation = "softmax")
model <- ggml_model(inputs = x, outputs = out)


ggmlR documentation built on July 14, 2026, 1:08 a.m.