Realm

oa::ml::training::CompiledRollout

Reusable compiled collection owner: captured reset/step/GAE plans plus replay accounting.

StRust public API

Declaration

pub struct CompiledRollout { /* private fields */ }
Public Rust declaration.

Public Methods

pub fn replay_count(&self) -> u64
pub fn command_recording_count(&self) -> u64
pub fn diagnostics(&self) -> Option<CompiledRolloutDiagnostics>
pub fn collect<E: CompiledEnvironment>( &mut self, engine: &Engine, model: &dyn ActorCritic, env: &mut E, rollout: &mut RolloutBuffer, ppo: &PpoTrainerConfig, options: CompiledCollectionOptions, ) -> Result<Duration>

Associated Functions

pub const fn new() -> Self
fn default() -> Self

Public Method Documentation

pub fn replay_count( &self ) -> u64
No public source comment is attached to this declaration.
pub fn command_recording_count( &self ) -> u64
No public source comment is attached to this declaration.
pub fn diagnostics( &self ) -> Option<CompiledRolloutDiagnostics>
No public source comment is attached to this declaration.
pub fn collect<E: CompiledEnvironment>( &mut self, engine: &Engine, model: &dyn ActorCritic, env: &mut E, rollout: &mut RolloutBuffer, ppo: &PpoTrainerConfig, options: CompiledCollectionOptions ) -> Result<Duration>
No public source comment is attached to this declaration.
pub const fn new() -> Self
No public source comment is attached to this declaration.
fn default() -> Self
No public source comment is attached to this declaration.