pub struct CheckpointOptions {
pub compress: bool,
pub compression_level: u32,
pub separate_tensors: bool,
pub max_history: Option<usize>,
pub create_latest_link: bool,
pub format: CheckpointFormat,
}Expand description
Checkpoint save/load options
Fields§
§compress: boolWhether to compress checkpoint data
compression_level: u32Compression level (0-9)
separate_tensors: boolWhether to save tensors separately
max_history: Option<usize>Maximum checkpoint history to keep
create_latest_link: boolWhether to create symlink to latest checkpoint
format: CheckpointFormatFile format for saving
Trait Implementations§
Source§impl Clone for CheckpointOptions
impl Clone for CheckpointOptions
Source§fn clone(&self) -> CheckpointOptions
fn clone(&self) -> CheckpointOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CheckpointOptions
impl Debug for CheckpointOptions
Auto Trait Implementations§
impl Freeze for CheckpointOptions
impl RefUnwindSafe for CheckpointOptions
impl Send for CheckpointOptions
impl Sync for CheckpointOptions
impl Unpin for CheckpointOptions
impl UnsafeUnpin for CheckpointOptions
impl UnwindSafe for CheckpointOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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