pub enum NextnRowsError {
Shape {
len: usize,
width: usize,
},
Unavailable,
}Expand description
Failure reading or writing the pre-norm (NextN) device buffer.
Variants§
Shape
The caller’s buffer is not a whole number of n_embd_out-wide rows.
Fields
llama.cpp declined the transfer — because the device buffer was never
enabled with set_embeddings_pre_norm_device, because this context
produces no pre-norm output, or because the requested rows run past the
end of the buffer, which holds n_batch + n_seq_max of them.
Trait Implementations§
Source§impl Clone for NextnRowsError
impl Clone for NextnRowsError
impl Copy for NextnRowsError
Source§impl Debug for NextnRowsError
impl Debug for NextnRowsError
Source§impl Display for NextnRowsError
impl Display for NextnRowsError
impl Eq for NextnRowsError
Source§impl Error for NextnRowsError
impl Error for NextnRowsError
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 NextnRowsError
impl PartialEq for NextnRowsError
impl StructuralPartialEq for NextnRowsError
Auto Trait Implementations§
impl Forget for NextnRowsError
impl Freeze for NextnRowsError
impl Move for NextnRowsError
impl RefUnwindSafe for NextnRowsError
impl Send for NextnRowsError
impl Sync for NextnRowsError
impl Unpin for NextnRowsError
impl UnsafeUnpin for NextnRowsError
impl UnwindSafe for NextnRowsError
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