pub enum EngineError {
Io(Error),
NotYet(&'static str),
Undecoded {
tensor: String,
ty: GgmlType,
},
Unreadable(String),
NoSequence(usize),
PastContext {
sequence: usize,
position: usize,
},
Factors {
found: usize,
pairs: usize,
},
Program(ProgramError),
}Expand description
Why the engine’s model cannot run a checkpoint.
Variants§
Io(Error)
NotYet(&'static str)
A feature of the architecture the engine does not run yet, by name.
Undecoded
A matrix in a format the array does not read and the vector units do not hold.
Unreadable(String)
A block whose scale is not finite.
NoSequence(usize)
A sequence the model does not hold.
PastContext
A run past the checkpoint’s context.
Factors
A rotation scaled by frequency factors whose table (rope_freqs.weight) holds found factors for its pairs.
Program(ProgramError)
No program for the model: its one program does not lower to the engine.
Trait Implementations§
Source§impl Debug for EngineError
impl Debug for EngineError
Source§impl From<Error> for EngineError
impl From<Error> for EngineError
Source§impl From<ProgramError> for EngineError
impl From<ProgramError> for EngineError
Source§fn from(e: ProgramError) -> Self
fn from(e: ProgramError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EngineError
impl !RefUnwindSafe for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl UnsafeUnpin for EngineError
impl !UnwindSafe for EngineError
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
§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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.