pub struct AsyncEnsembleCoordinator { /* private fields */ }Expand description
Asynchronous training coordinator for distributed ensembles
Implementations§
Source§impl AsyncEnsembleCoordinator
impl AsyncEnsembleCoordinator
Sourcepub fn new(config: ParallelConfig) -> Self
pub fn new(config: ParallelConfig) -> Self
Create new async coordinator
Sourcepub fn submit_task(&mut self, worker_id: usize, task_id: usize)
pub fn submit_task(&mut self, worker_id: usize, task_id: usize)
Submit training task asynchronously
Sourcepub fn wait_for_completion(&mut self) -> Result<Vec<usize>>
pub fn wait_for_completion(&mut self) -> Result<Vec<usize>>
Wait for all tasks to complete
Sourcepub fn get_worker_status(&self) -> Vec<usize>
pub fn get_worker_status(&self) -> Vec<usize>
Get status of active workers
Auto Trait Implementations§
impl Freeze for AsyncEnsembleCoordinator
impl RefUnwindSafe for AsyncEnsembleCoordinator
impl Send for AsyncEnsembleCoordinator
impl Sync for AsyncEnsembleCoordinator
impl Unpin for AsyncEnsembleCoordinator
impl UnwindSafe for AsyncEnsembleCoordinator
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