pub enum ExecutionStrategy<B: Backend> {
SingleDevice(B::Device),
MultiDevice(Vec<B::Device>, MultiDeviceOptim),
}Expand description
Describes where training runs.
Variants§
SingleDevice(B::Device)
Training on one device
MultiDevice(Vec<B::Device>, MultiDeviceOptim)
Performs data-parallel distributed training where the optimization is done on an elected master device.
Implementations§
Source§impl<B: Backend> ExecutionStrategy<B>
impl<B: Backend> ExecutionStrategy<B>
Trait Implementations§
Source§impl<LC: LearningComponentsTypes> From<ExecutionStrategy<<LC as LearningComponentsTypes>::Backend>> for TrainingStrategy<LC>
impl<LC: LearningComponentsTypes> From<ExecutionStrategy<<LC as LearningComponentsTypes>::Backend>> for TrainingStrategy<LC>
Source§fn from(value: ExecutionStrategy<LC::Backend>) -> Self
fn from(value: ExecutionStrategy<LC::Backend>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<B> Freeze for ExecutionStrategy<B>
impl<B> RefUnwindSafe for ExecutionStrategy<B>
impl<B> Send for ExecutionStrategy<B>
impl<B> Sync for ExecutionStrategy<B>
impl<B> Unpin for ExecutionStrategy<B>
impl<B> UnsafeUnpin for ExecutionStrategy<B>
impl<B> UnwindSafe for ExecutionStrategy<B>
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