pub struct TransformerPerformanceTracker<T: Float + Debug + Send + Sync + 'static> { /* private fields */ }
Expand description
Transformer performance tracker
Implementations§
Source§impl<T: Float + Debug + Send + Sync + 'static> TransformerPerformanceTracker<T>
impl<T: Float + Debug + Send + Sync + 'static> TransformerPerformanceTracker<T>
Sourcepub fn with_config(config: PerformanceConfig) -> Self
pub fn with_config(config: PerformanceConfig) -> Self
Create with custom configuration
Sourcepub fn record_optimization_step(
&mut self,
duration: Duration,
update: &Array1<T>,
)
pub fn record_optimization_step( &mut self, duration: Duration, update: &Array1<T>, )
Record optimization step performance
Sourcepub fn record_training_epoch(&mut self, metrics: TrainingMetrics)
pub fn record_training_epoch(&mut self, metrics: TrainingMetrics)
Record training epoch performance
Sourcepub fn record_meta_step(&mut self, result: MetaLearningResult<T>)
pub fn record_meta_step(&mut self, result: MetaLearningResult<T>)
Record meta-learning step performance
Sourcepub fn record_inference(
&mut self,
input_size: usize,
duration: Duration,
output_quality: f64,
)
pub fn record_inference( &mut self, input_size: usize, duration: Duration, output_quality: f64, )
Record inference performance
Sourcepub fn record_memory_usage(&mut self, usage: MemoryUsage)
pub fn record_memory_usage(&mut self, usage: MemoryUsage)
Record memory usage
Sourcepub fn record_loss(&mut self, loss: f64)
pub fn record_loss(&mut self, loss: f64)
Record loss value
Sourcepub fn profile_operation<F, R>(
&mut self,
operation_name: &str,
operation: F,
) -> Result<R>
pub fn profile_operation<F, R>( &mut self, operation_name: &str, operation: F, ) -> Result<R>
Profile operation performance
Sourcepub fn generate_report(&self) -> PerformanceReport
pub fn generate_report(&self) -> PerformanceReport
Generate performance report
Sourcepub fn get_loss_history(&self) -> &VecDeque<f64>
pub fn get_loss_history(&self) -> &VecDeque<f64>
Get loss history
Sourcepub fn get_metrics(&self) -> &PerformanceMetrics
pub fn get_metrics(&self) -> &PerformanceMetrics
Get current performance metrics
Sourcepub fn get_trends(&self) -> &PerformanceTrends
pub fn get_trends(&self) -> &PerformanceTrends
Get performance trends
Sourcepub fn set_baselines(&mut self, baselines: PerformanceBaselines)
pub fn set_baselines(&mut self, baselines: PerformanceBaselines)
Set performance baselines
Auto Trait Implementations§
impl<T> Freeze for TransformerPerformanceTracker<T>
impl<T> RefUnwindSafe for TransformerPerformanceTracker<T>where
T: RefUnwindSafe,
impl<T> Send for TransformerPerformanceTracker<T>
impl<T> Sync for TransformerPerformanceTracker<T>
impl<T> Unpin for TransformerPerformanceTracker<T>where
T: Unpin,
impl<T> UnwindSafe for TransformerPerformanceTracker<T>where
T: 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
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.