pub struct HardwareOptimizationConfig<A: Float> {
pub batch_size: usize,
pub memory_strategy: MemoryStrategy,
pub parallelization: ParallelizationStrategy,
pub precision: PrecisionStrategy,
pub optimizer_params: HashMap<String, A>,
pub communication: Option<CommunicationStrategy>,
}
Expand description
Hardware-specific optimization configuration
Fields§
§batch_size: usize
Optimized batch size for hardware
memory_strategy: MemoryStrategy
Memory-efficient parameter update strategy
parallelization: ParallelizationStrategy
Parallel computation strategy
precision: PrecisionStrategy
Precision strategy
optimizer_params: HashMap<String, A>
Hardware-specific optimizer parameters
communication: Option<CommunicationStrategy>
Communication strategy (for distributed)
Trait Implementations§
Source§impl<A: Clone + Float> Clone for HardwareOptimizationConfig<A>
impl<A: Clone + Float> Clone for HardwareOptimizationConfig<A>
Source§fn clone(&self) -> HardwareOptimizationConfig<A>
fn clone(&self) -> HardwareOptimizationConfig<A>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<A> Freeze for HardwareOptimizationConfig<A>
impl<A> RefUnwindSafe for HardwareOptimizationConfig<A>where
A: RefUnwindSafe,
impl<A> Send for HardwareOptimizationConfig<A>where
A: Send,
impl<A> Sync for HardwareOptimizationConfig<A>where
A: Sync,
impl<A> Unpin for HardwareOptimizationConfig<A>where
A: Unpin,
impl<A> UnwindSafe for HardwareOptimizationConfig<A>where
A: 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> 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