pub struct AdaptiveAlgorithmSelector { /* private fields */ }Expand description
Adaptive algorithm selector
Implementations§
Source§impl AdaptiveAlgorithmSelector
impl AdaptiveAlgorithmSelector
Sourcepub fn select_algorithm(
&self,
characteristics: &TensorCharacteristics,
) -> OptimizationAlgorithm
pub fn select_algorithm( &self, characteristics: &TensorCharacteristics, ) -> OptimizationAlgorithm
Select best optimization algorithm based on tensor characteristics
Sourcepub fn record_performance(
&mut self,
algorithm: &OptimizationAlgorithm,
performance: f32,
)
pub fn record_performance( &mut self, algorithm: &OptimizationAlgorithm, performance: f32, )
Record performance for algorithm adaptation
Sourcepub fn get_algorithm_score(&self, algorithm: &OptimizationAlgorithm) -> f32
pub fn get_algorithm_score(&self, algorithm: &OptimizationAlgorithm) -> f32
Get performance score for an algorithm
Sourcepub fn select_algorithm_adaptive(
&self,
characteristics: &TensorCharacteristics,
) -> OptimizationAlgorithm
pub fn select_algorithm_adaptive( &self, characteristics: &TensorCharacteristics, ) -> OptimizationAlgorithm
Adaptive selection that learns from performance history
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdaptiveAlgorithmSelector
impl RefUnwindSafe for AdaptiveAlgorithmSelector
impl Send for AdaptiveAlgorithmSelector
impl Sync for AdaptiveAlgorithmSelector
impl Unpin for AdaptiveAlgorithmSelector
impl UnsafeUnpin for AdaptiveAlgorithmSelector
impl UnwindSafe for AdaptiveAlgorithmSelector
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 more