pub enum ModelFitStatus {
Fits,
TooBig,
Unknown,
}Expand description
Memory fit of one catalog row on one machine, as models.list_unified
publishes it. Three-valued on purpose: a catalog consumer wants to know
whether to offer the row, and “the server owns its memory” is, for that
question, a fit. FitStatus keeps the four-way distinction for the
recommender, which ranks rather than filters.
Variants§
Fits
Fits this machine’s active local-model budget, or runs somewhere that is not this machine’s memory at all (remote API, delegated runner, operator-managed external endpoint).
TooBig
Too large for this machine’s active local-model budget.
Unknown
The row declares no usable memory figure, or the accelerator’s memory
is unknown, so fit cannot be asserted either way. Also what a client
sees from a daemon that predates the annotation, which is why it is
the Default: an absent verdict must never read as too-big.
Trait Implementations§
Source§impl Clone for ModelFitStatus
impl Clone for ModelFitStatus
Source§fn clone(&self) -> ModelFitStatus
fn clone(&self) -> ModelFitStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ModelFitStatus
Source§impl Debug for ModelFitStatus
impl Debug for ModelFitStatus
Source§impl Default for ModelFitStatus
impl Default for ModelFitStatus
Source§fn default() -> ModelFitStatus
fn default() -> ModelFitStatus
Source§impl<'de> Deserialize<'de> for ModelFitStatus
impl<'de> Deserialize<'de> for ModelFitStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ModelFitStatus
Source§impl PartialEq for ModelFitStatus
impl PartialEq for ModelFitStatus
Source§impl Serialize for ModelFitStatus
impl Serialize for ModelFitStatus
impl StructuralPartialEq for ModelFitStatus
Auto Trait Implementations§
impl Freeze for ModelFitStatus
impl RefUnwindSafe for ModelFitStatus
impl Send for ModelFitStatus
impl Sync for ModelFitStatus
impl Unpin for ModelFitStatus
impl UnsafeUnpin for ModelFitStatus
impl UnwindSafe for ModelFitStatus
Blanket Implementations§
impl<T> Boilerplate for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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