pub struct AsyncCheckpointer<R> { /* private fields */ }Expand description
Async checkpointer.
Implementations§
Source§impl<R> AsyncCheckpointer<R>where
R: Checkpoint,
impl<R> AsyncCheckpointer<R>where
R: Checkpoint,
Sourcepub fn new<C>(checkpointer: C) -> Selfwhere
C: Checkpointer<R> + Send + 'static,
pub fn new<C>(checkpointer: C) -> Selfwhere
C: Checkpointer<R> + Send + 'static,
Sourcepub fn with_interrupter(self, interrupter: Interrupter) -> Self
pub fn with_interrupter(self, interrupter: Interrupter) -> Self
Assign a handle used to interrupt training in case of checkpointing error.
Trait Implementations§
Source§impl<R> Checkpointer<R> for AsyncCheckpointer<R>where
R: Checkpoint,
impl<R> Checkpointer<R> for AsyncCheckpointer<R>where
R: Checkpoint,
Source§impl<E> Drop for AsyncCheckpointer<E>
impl<E> Drop for AsyncCheckpointer<E>
Auto Trait Implementations§
impl<R> !RefUnwindSafe for AsyncCheckpointer<R>
impl<R> !UnwindSafe for AsyncCheckpointer<R>
impl<R> Freeze for AsyncCheckpointer<R>where
SyncSender<Message<R>>: Freeze,
impl<R> Send for AsyncCheckpointer<R>where
SyncSender<Message<R>>: Send,
impl<R> Sync for AsyncCheckpointer<R>where
SyncSender<Message<R>>: Sync,
impl<R> Unpin for AsyncCheckpointer<R>where
SyncSender<Message<R>>: Unpin,
impl<R> UnsafeUnpin for AsyncCheckpointer<R>where
SyncSender<Message<R>>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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