oa::Optimizer
base Optimizer
Public Methods
Constructor & Destructor Documentation
Public Method Documentation
No public source comment is attached to this declaration.
Returns
oa::F32The declared return value.
current step count.
Returns
oa::U64The declared return value.
No public source comment is attached to this declaration.
Parameters
inEngineEngine &—
inFileconst ModelFile &—
Returns
oa::StatusThe declared return value.
No public source comment is attached to this declaration.
Returns
oa::F32The declared return value.
A compiled training program executes the already-recorded optimizer kernels without calling step() again. Keep the host-visible logical step aligned so schedules and checkpoints observe the same state as eager execution.
Parameters
inCountoa::U64Default: 1
Returns
voidThe declared return value.
Persistence — write/read optimizer state (moments, step count, hyperparams) into a ModelFile section. Default no-op so SGD/Adam compile until they implement.
Parameters
inEngineEngine &—
outFileModelFile &—
Returns
oa::StatusThe declared return value.
get/set learning rate.
Parameters
inLroa::F32—
Returns
voidThe declared return value.
apply accumulated gradients to parameters.
Returns
voidThe declared return value.
No public source comment is attached to this declaration.
Parameters
inFileconst ModelFile &—
Returns
oa::StatusThe declared return value.
Zero all gradients.
Returns
voidThe declared return value.