pub enum LaneError {
NotYet(NotYet),
Parse(String),
Graph(GraphError),
Unbound(String),
Shape {
var: String,
declared: usize,
bound: usize,
},
Format {
tensor: String,
ty: &'static str,
why: &'static str,
},
NoKernel {
op: usize,
kind: &'static str,
out: String,
why: String,
},
Chunk {
rows: usize,
ctx: usize,
},
Batch {
batch: usize,
},
Io(String),
Memory {
needed: usize,
budget: usize,
},
}Expand description
Why a model’s step does not compile to the lane, by name.
Variants§
NotYet(NotYet)
The language cannot write the model yet.
Parse(String)
The authored step does not parse.
Graph(GraphError)
The front end does not lift the step whole.
Unbound(String)
A constant the step declares that nothing binds.
Shape
A constant whose bound values are not the size the step declares.
Format
A checkpoint tensor in a format the lane reads no way.
NoKernel
An op the library has no kernel for, in the form the step writes it.
Chunk
A prefill chunk that is not a power of two up to plan::MAX_CHUNK rows and the caches’ positions.
Batch
A batch of fewer than two sequences: the decode step is the batch of one.
Io(String)
The checkpoint could not be read.
Memory
Arrays the device must hold — its caches, arena and buffers, every matrix moved to host memory — past its memory.
Trait Implementations§
Source§impl Error for LaneError
impl Error for LaneError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<GraphError> for LaneError
impl From<GraphError> for LaneError
Source§fn from(e: GraphError) -> Self
fn from(e: GraphError) -> Self
impl Eq for LaneError
impl StructuralPartialEq for LaneError
Auto Trait Implementations§
impl Freeze for LaneError
impl RefUnwindSafe for LaneError
impl Send for LaneError
impl Sync for LaneError
impl Unpin for LaneError
impl UnsafeUnpin for LaneError
impl UnwindSafe for LaneError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§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
§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
key and return true if they are equal.