pub struct TrainingSessionSnapshot {
pub revision: u64,
pub state: TrainingState,
pub step: u64,
pub epoch: u64,
pub learning_rate: f32,
pub loss: f32,
pub gpu_ms: f64,
pub wall_ms: f64,
pub metrics: Vec<TrainingMetricSample>,
}Expand description
Bounded live-control snapshot published by an attached iterator.
Fields§
§revision: u64Session revision represented by this snapshot.
state: TrainingStateLifecycle state represented by this snapshot.
step: u64Completed training steps.
epoch: u64Current one-based epoch, or zero when epochs are disabled.
learning_rate: f32Learning rate used by the next optimizer step.
loss: f32Most recently completed loss, or zero before a loss is available.
gpu_ms: f64Most recent device duration in milliseconds, or zero when untimed.
wall_ms: f64Mean wall-clock milliseconds per completed step.
metrics: Vec<TrainingMetricSample>Current named scalar metrics.
Trait Implementations§
Source§impl Clone for TrainingSessionSnapshot
impl Clone for TrainingSessionSnapshot
Source§impl Debug for TrainingSessionSnapshot
impl Debug for TrainingSessionSnapshot
Source§impl PartialEq for TrainingSessionSnapshot
impl PartialEq for TrainingSessionSnapshot
impl StructuralPartialEq for TrainingSessionSnapshot
Auto Trait Implementations§
impl Forget for TrainingSessionSnapshot
impl Freeze for TrainingSessionSnapshot
impl Move for TrainingSessionSnapshot
impl RefUnwindSafe for TrainingSessionSnapshot
impl Send for TrainingSessionSnapshotwhere
RawVecInner: Send,
impl Sync for TrainingSessionSnapshotwhere
RawVecInner: Sync,
impl Unpin for TrainingSessionSnapshot
impl UnsafeUnpin for TrainingSessionSnapshot
impl UnwindSafe for TrainingSessionSnapshotwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more