Struct MultiDevicesTrainStep
pub struct MultiDevicesTrainStep<LC>where
LC: LearnerComponentTypes,{ /* private fields */ }Expand description
Multi devices train step.
Implementations§
§impl<LC> MultiDevicesTrainStep<LC>where
LC: LearnerComponentTypes,
impl<LC> MultiDevicesTrainStep<LC>where
LC: LearnerComponentTypes,
pub fn new(
devices: &[<<LC as LearnerComponentTypes>::Backend as Backend>::Device],
) -> MultiDevicesTrainStep<LC>
pub fn new( devices: &[<<LC as LearnerComponentTypes>::Backend as Backend>::Device], ) -> MultiDevicesTrainStep<LC>
pub fn step<'a>(
&self,
dataloaders: &mut [Box<dyn DataLoaderIterator<<<LC as LearnerComponentTypes>::LearningData as LearningData>::TrainInput, Item = <<LC as LearnerComponentTypes>::LearningData as LearningData>::TrainInput> + 'a>],
model: &<LC as LearnerComponentTypes>::Model,
) -> (Vec<TrainOutput<<<LC as LearnerComponentTypes>::LearningData as LearningData>::TrainOutput>>, Progress)
pub fn step<'a>( &self, dataloaders: &mut [Box<dyn DataLoaderIterator<<<LC as LearnerComponentTypes>::LearningData as LearningData>::TrainInput, Item = <<LC as LearnerComponentTypes>::LearningData as LearningData>::TrainInput> + 'a>], model: &<LC as LearnerComponentTypes>::Model, ) -> (Vec<TrainOutput<<<LC as LearnerComponentTypes>::LearningData as LearningData>::TrainOutput>>, Progress)
Auto Trait Implementations§
impl<LC> Freeze for MultiDevicesTrainStep<LC>
impl<LC> RefUnwindSafe for MultiDevicesTrainStep<LC>
impl<LC> Send for MultiDevicesTrainStep<LC>
impl<LC> !Sync for MultiDevicesTrainStep<LC>
impl<LC> Unpin for MultiDevicesTrainStep<LC>
impl<LC> UnwindSafe for MultiDevicesTrainStep<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