ag_backward_graph: Compute the backward pass as a single ggml graph

View source: R/ag_backward_graph.R

ag_backward_graphR Documentation

Compute the backward pass as a single ggml graph

Description

Opt-in while the graph path covers only part of the op set: a tape containing any operation it cannot emit runs the ordinary closure path instead. Enable with 'GGMLR_AG_BACKWARD_GRAPH=1' or by calling this function.

Usage

ag_backward_graph(on = TRUE)

ag_backward_path()

Arguments

on

'TRUE' to use the graph path where possible, 'FALSE' to always use closures, 'NA' to only query the current state.

Value

The previous state, invisibly.


ggmlR documentation built on Oct. 23, 2026, 1:07 a.m.