pub struct ParallelConfig {
pub n_workers: Option<usize>,
pub strategy: ParallelStrategy,
pub batch_size: Option<usize>,
pub work_stealing: bool,
pub thread_pool_size: Option<usize>,
pub memory_limit_mb: Option<usize>,
pub load_balancing: bool,
pub communication_buffer_size: usize,
pub worker_timeout_secs: Option<u64>,
}Expand description
Configuration for parallel training
Fields§
§n_workers: Option<usize>Number of parallel workers (threads)
strategy: ParallelStrategyParallelization strategy
batch_size: Option<usize>Batch size for data-parallel training
work_stealing: boolWhether to use work-stealing scheduler
thread_pool_size: Option<usize>Thread pool configuration
memory_limit_mb: Option<usize>Memory limit per worker (in MB)
load_balancing: boolEnable load balancing across workers
communication_buffer_size: usizeCommunication buffer size for distributed training
worker_timeout_secs: Option<u64>Timeout for worker operations (in seconds)
Trait Implementations§
Source§impl Clone for ParallelConfig
impl Clone for ParallelConfig
Source§fn clone(&self) -> ParallelConfig
fn clone(&self) -> ParallelConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ParallelConfig
impl Debug for ParallelConfig
Auto Trait Implementations§
impl Freeze for ParallelConfig
impl RefUnwindSafe for ParallelConfig
impl Send for ParallelConfig
impl Sync for ParallelConfig
impl Unpin for ParallelConfig
impl UnwindSafe for ParallelConfig
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