pub struct DistributedMetrics {
pub communication_time_ms: f64,
pub computation_time_ms: f64,
pub synchronization_time_ms: f64,
pub total_bytes_communicated: usize,
pub num_synchronizations: usize,
pub efficiency_score: f32,
}Expand description
Performance metrics for distributed training
Fields§
§communication_time_ms: f64§computation_time_ms: f64§synchronization_time_ms: f64§total_bytes_communicated: usize§num_synchronizations: usize§efficiency_score: f32Implementations§
Source§impl DistributedMetrics
impl DistributedMetrics
pub fn new() -> Self
pub fn compute_efficiency(&mut self)
Trait Implementations§
Source§impl Clone for DistributedMetrics
impl Clone for DistributedMetrics
Source§fn clone(&self) -> DistributedMetrics
fn clone(&self) -> DistributedMetrics
Returns a duplicate of the value. Read more
1.0.0 · 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 DistributedMetrics
impl RefUnwindSafe for DistributedMetrics
impl Send for DistributedMetrics
impl Sync for DistributedMetrics
impl Unpin for DistributedMetrics
impl UnsafeUnpin for DistributedMetrics
impl UnwindSafe for DistributedMetrics
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