ag_launch_count: Graph launches on the ag_* path

View source: R/ag_xfer.R

ag_launch_countR Documentation

Graph launches on the ag_* path

Description

Number of ggml graphs computed by ag_* operations since the last reset, by call site (per-operation forward, deferred graph, graph backward, flash attention). Diagnostic: with ag_graph_mode on, a training step of a small network should take a handful of launches, not hundreds.

Usage

ag_launch_count(reset = FALSE)

Arguments

reset

TRUE to zero the counters after reading them.

Value

A named numeric vector of launches per site (total in "total").


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