ag_capture_set: Change a setting of a captured training step

View source: R/ag_capture.R

ag_capture_setR Documentation

Change a setting of a captured training step

Description

Settings are inputs of the recording, read on every call, so changing one does not record again.

Usage

ag_capture_set(f, max_grad_norm)

Arguments

f

A function returned by ag_capture_step.

max_grad_norm

A positive number: the new gradient-clipping limit. The step must have been created with a max_grad_norm (clipping cannot be switched on or off after creation).

Value

f, invisibly.

See Also

ag_capture_step


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