pub struct LearningComponentsMarker<B, LR, M, O> { /* private fields */ }Expand description
Concrete type that implements the LearningComponentsTypes trait.
Trait Implementations§
Source§impl<B, LR, M, O> LearningComponentsTypes for LearningComponentsMarker<B, LR, M, O>where
B: AutodiffBackend,
LR: LrScheduler + 'static,
M: TrainStep + AutodiffModule<B> + Display + 'static,
M::InnerModule: InferenceStep,
O: Optimizer<M, B> + 'static,
impl<B, LR, M, O> LearningComponentsTypes for LearningComponentsMarker<B, LR, M, O>where
B: AutodiffBackend,
LR: LrScheduler + 'static,
M: TrainStep + AutodiffModule<B> + Display + 'static,
M::InnerModule: InferenceStep,
O: Optimizer<M, B> + 'static,
Source§type LrScheduler = LR
type LrScheduler = LR
The learning rate scheduler used for training.
Source§type TrainingModel = M
type TrainingModel = M
The model to train.
Source§type InferenceModel = <M as AutodiffModule<B>>::InnerModule
type InferenceModel = <M as AutodiffModule<B>>::InnerModule
The non-autodiff type of the model.
Auto Trait Implementations§
impl<B, LR, M, O> Freeze for LearningComponentsMarker<B, LR, M, O>
impl<B, LR, M, O> RefUnwindSafe for LearningComponentsMarker<B, LR, M, O>
impl<B, LR, M, O> Send for LearningComponentsMarker<B, LR, M, O>
impl<B, LR, M, O> Sync for LearningComponentsMarker<B, LR, M, O>
impl<B, LR, M, O> Unpin for LearningComponentsMarker<B, LR, M, O>
impl<B, LR, M, O> UnwindSafe for LearningComponentsMarker<B, LR, M, O>
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