pub enum TrainingStrategy<LC: LearningComponentsTypes> {
Default(ExecutionStrategy<LC::Backend>),
Custom(CustomLearningStrategy<LC>),
}Expand description
How should the learner run the learning for the model
Variants§
Default(ExecutionStrategy<LC::Backend>)
Default training loop with specified device strategy.
Custom(CustomLearningStrategy<LC>)
Training using a custom learning strategy
Trait Implementations§
Source§impl<LC: LearningComponentsTypes> Default for TrainingStrategy<LC>
impl<LC: LearningComponentsTypes> Default for TrainingStrategy<LC>
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<LC> Freeze for TrainingStrategy<LC>
impl<LC> !RefUnwindSafe for TrainingStrategy<LC>
impl<LC> !Send for TrainingStrategy<LC>
impl<LC> !Sync for TrainingStrategy<LC>
impl<LC> Unpin for TrainingStrategy<LC>
impl<LC> UnsafeUnpin for TrainingStrategy<LC>
impl<LC> !UnwindSafe for TrainingStrategy<LC>
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