oa::ItRolloutTraining
Coordinates the two-phase lifecycle of synchronous on-policy training. Environment stepping, policy evaluation, and loss construction remain caller supplied; an owned `ItTraining` controls each exact optimizer update.
Public Methods
Constructor & Destructor Documentation
Public Method Documentation
Restores the pre-beginRollout collect state after the caller cancels the unsubmitted command transaction. This is also valid after finalizeRollout and before the first update begins.
Parameters
inRolloutRolloutBuffer &—
Returns
oa::StatusThe declared return value.
Starts one collection cycle and resets the supplied fixed-capacity buffer.
Parameters
inRolloutRolloutBuffer &—
Returns
oa::StatusThe declared return value.
Must be called immediately before recording one differentiable PPO update. It advances the underlying ItTraining lifecycle and returns false only on invalid phase/configuration or after completion.
Returns
boolThe declared return value.
No public source comment is attached to this declaration.
Returns
const ItRolloutTrainingConfig &The declared return value.
Requires a full buffer, records GAE, and opens the update phase.
Parameters
inRolloutRolloutBuffer &—
inConfigconst GaeConfig &Default: {}
Returns
oa::StatusThe declared return value.
No public source comment is attached to this declaration.
Returns
oa::StatusThe declared return value.
No public source comment is attached to this declaration.
Returns
boolThe declared return value.
No public source comment is attached to this declaration.
Returns
boolThe declared return value.
No public source comment is attached to this declaration.
Returns
const oa::Status &The declared return value.
Completes the update recorded after beginUpdate: optimizer, submit, sync, metrics and phase advancement.
Parameters
inLossconst oa::Matrix &—
Returns
oa::StatusThe declared return value.
No public source comment is attached to this declaration.
Returns
RolloutTrainingPhaseThe declared return value.
No public source comment is attached to this declaration.
Returns
oa::U32The declared return value.
No public source comment is attached to this declaration.
Returns
oa::U32The declared return value.
No public source comment is attached to this declaration.
Returns
const oa::ItTraining &The declared return value.
No public source comment is attached to this declaration.
Returns
oa::ItTraining &The declared return value.