pub struct TrainMetrics {
pub device: Device,
pub lanes: Vec<Device>,
pub inventory: Vec<Device>,
pub samples: usize,
pub wall_s: f64,
pub compute_s: f64,
pub comm_s: f64,
pub first_loss: f32,
pub last_loss: f32,
}Expand description
Per-worker training result.
Fields§
§device: DeviceDevice the worker resolved and trained on (the primary lane).
lanes: Vec<Device>The backends actually used this run — one for a single device, several
for device: "all" (intra-node data-parallel across the node’s hardware).
inventory: Vec<Device>Every live backend on this node (what device: "all" could use).
samples: usize§wall_s: f64§compute_s: f64Time in backward compute (run()).
comm_s: f64Time in the cross-worker gradient reduce (the reduce closure).
first_loss: f32§last_loss: f32Trait Implementations§
Source§impl Clone for TrainMetrics
impl Clone for TrainMetrics
Source§fn clone(&self) -> TrainMetrics
fn clone(&self) -> TrainMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TrainMetrics
impl RefUnwindSafe for TrainMetrics
impl Send for TrainMetrics
impl Sync for TrainMetrics
impl Unpin for TrainMetrics
impl UnsafeUnpin for TrainMetrics
impl UnwindSafe for TrainMetrics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more