pub struct ArchitectureAwareOptimizer<A: Float, D: Dimension> { /* private fields */ }
Expand description
Architecture-aware optimizer
Implementations§
Source§impl<A: Float + ScalarOperand + Debug, D: Dimension> ArchitectureAwareOptimizer<A, D>
impl<A: Float + ScalarOperand + Debug, D: Dimension> ArchitectureAwareOptimizer<A, D>
Sourcepub fn new(
config: OptimizationConfig<A>,
strategy: ArchitectureStrategy,
) -> Self
pub fn new( config: OptimizationConfig<A>, strategy: ArchitectureStrategy, ) -> Self
Create a new architecture-aware optimizer
Sourcepub fn apply_architecture_optimizations(&mut self) -> Result<()>
pub fn apply_architecture_optimizations(&mut self) -> Result<()>
Apply architecture-specific optimizations
Sourcepub fn parameter_manager(&self) -> &ParameterManager<A, D>
pub fn parameter_manager(&self) -> &ParameterManager<A, D>
Get parameter manager
Sourcepub fn parameter_manager_mut(&mut self) -> &mut ParameterManager<A, D>
pub fn parameter_manager_mut(&mut self) -> &mut ParameterManager<A, D>
Get mutable parameter manager
Trait Implementations§
Auto Trait Implementations§
impl<A, D> Freeze for ArchitectureAwareOptimizer<A, D>where
A: Freeze,
impl<A, D> RefUnwindSafe for ArchitectureAwareOptimizer<A, D>where
A: RefUnwindSafe,
D: RefUnwindSafe,
impl<A, D> Send for ArchitectureAwareOptimizer<A, D>where
A: Send,
impl<A, D> Sync for ArchitectureAwareOptimizer<A, D>where
A: Sync,
impl<A, D> Unpin for ArchitectureAwareOptimizer<A, D>
impl<A, D> UnwindSafe for ArchitectureAwareOptimizer<A, D>
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