pub struct AsyncOptimizationConfig {Show 13 fields
pub num_workers: usize,
pub batch_size: usize,
pub max_concurrent_tasks: usize,
pub learning_rate: Float,
pub learning_rate_decay: Float,
pub momentum: Float,
pub adaptive_learning_rate: bool,
pub convergence_tolerance: Float,
pub max_iterations: usize,
pub async_updates: bool,
pub update_frequency_ms: u64,
pub gradient_checkpointing: bool,
pub channel_buffer_size: usize,
}Expand description
Configuration for asynchronous optimization
Fields§
§num_workers: usizeNumber of worker threads for parallel optimization
batch_size: usizeBatch size for parameter updates
max_concurrent_tasks: usizeMaximum number of concurrent tasks
learning_rate: FloatLearning rate for parameter updates
learning_rate_decay: FloatLearning rate decay factor
momentum: FloatMomentum parameter for optimization
adaptive_learning_rate: boolEnable adaptive learning rate
convergence_tolerance: FloatConvergence tolerance
max_iterations: usizeMaximum number of iterations
async_updates: boolEnable asynchronous parameter updates
update_frequency_ms: u64Update frequency for parameters (in milliseconds)
gradient_checkpointing: boolEnable gradient checkpointing for memory efficiency
channel_buffer_size: usizeChannel buffer size for async communication
Trait Implementations§
Source§impl Clone for AsyncOptimizationConfig
impl Clone for AsyncOptimizationConfig
Source§fn clone(&self) -> AsyncOptimizationConfig
fn clone(&self) -> AsyncOptimizationConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AsyncOptimizationConfig
impl Debug for AsyncOptimizationConfig
Auto Trait Implementations§
impl Freeze for AsyncOptimizationConfig
impl RefUnwindSafe for AsyncOptimizationConfig
impl Send for AsyncOptimizationConfig
impl Sync for AsyncOptimizationConfig
impl Unpin for AsyncOptimizationConfig
impl UnsafeUnpin for AsyncOptimizationConfig
impl UnwindSafe for AsyncOptimizationConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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