pub enum TargetResolveError {
Ambiguous {
model_type: String,
hidden_size: usize,
tier: &'static str,
candidates: Vec<(String, Vec<String>)>,
matched: Vec<String>,
model_refs: Vec<String>,
},
PinNotFound {
pin: String,
available: Vec<String>,
},
PinIncompatible {
pin: String,
model_type: String,
hidden_size: usize,
declared: Vec<String>,
},
}Expand description
Why resolution could not choose a target. Every variant is a hard error at the call site — resolution must never fall back to iteration order.
Variants§
Ambiguous
More than one differently-named target claims the checkpoint’s
(model_type, hidden_size) and the reference tie-break did not
leave exactly one.
Fields
PinNotFound
--kernel-target named a target this binary did not compile.
PinIncompatible
--kernel-target named a compiled target that does not declare
support for the checkpoint’s (model_type, hidden_size) — serving
would run another architecture’s kernels.
Trait Implementations§
Source§impl Clone for TargetResolveError
impl Clone for TargetResolveError
Source§fn clone(&self) -> TargetResolveError
fn clone(&self) -> TargetResolveError
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 TargetResolveError
impl Debug for TargetResolveError
Source§impl Display for TargetResolveError
impl Display for TargetResolveError
Source§impl Error for TargetResolveError
impl Error for TargetResolveError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for TargetResolveError
impl PartialEq for TargetResolveError
impl Eq for TargetResolveError
impl StructuralPartialEq for TargetResolveError
Auto Trait Implementations§
impl Freeze for TargetResolveError
impl RefUnwindSafe for TargetResolveError
impl Send for TargetResolveError
impl Sync for TargetResolveError
impl Unpin for TargetResolveError
impl UnwindSafe for TargetResolveError
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.