pub enum LoadProgress {
HyperparametersLoaded,
ContextSize {
bytes: usize,
},
TensorLoaded {
current_tensor: usize,
tensor_count: usize,
},
Loaded {
file_size: u64,
tensor_count: usize,
},
}
Expand description
Each variant represents a step within the process of loading the model. These can be used to report progress to the user.
Variants§
HyperparametersLoaded
The hyperparameters have been loaded from the model.
ContextSize
The context has been created.
TensorLoaded
A tensor from the current part has been loaded.
Fields
Loaded
A model part has finished fully loading.
Trait Implementations§
Source§impl Clone for LoadProgress
impl Clone for LoadProgress
Source§fn clone(&self) -> LoadProgress
fn clone(&self) -> LoadProgress
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LoadProgress
impl Debug for LoadProgress
Source§impl PartialEq for LoadProgress
impl PartialEq for LoadProgress
impl Eq for LoadProgress
impl StructuralPartialEq for LoadProgress
Auto Trait Implementations§
impl Freeze for LoadProgress
impl RefUnwindSafe for LoadProgress
impl Send for LoadProgress
impl Sync for LoadProgress
impl Unpin for LoadProgress
impl UnwindSafe for LoadProgress
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