pub enum FitPlan {
Resident,
Stream {
cache_bytes: u64,
},
}Expand description
What to do about a model whose weights may not fit.
Variants§
Resident
Load everything resident. The fast path, and the default.
Stream
Stream experts, keeping at most this many bytes of them cached.
Trait Implementations§
impl Copy for FitPlan
impl Eq for FitPlan
impl StructuralPartialEq for FitPlan
Auto Trait Implementations§
impl Freeze for FitPlan
impl RefUnwindSafe for FitPlan
impl Send for FitPlan
impl Sync for FitPlan
impl Unpin for FitPlan
impl UnsafeUnpin for FitPlan
impl UnwindSafe for FitPlan
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