pub enum EmbeddingsError {
NotEnabled,
LogitsNotEnabled(i32),
NonePoolType(i32),
}Expand description
Errors returned by the embedding accessors.
Variants§
NotEnabled
The context was created without with_embeddings(true).
LogitsNotEnabled(i32)
No embeddings for the given token: its batch entry did not request logits/embeddings, or the index was out of range.
NonePoolType(i32)
No per-sequence embeddings for the given sequence: the pooling type is
LLAMA_POOLING_TYPE_NONE, or the sequence id was out of range.
Trait Implementations§
Source§impl Debug for EmbeddingsError
impl Debug for EmbeddingsError
Source§impl Display for EmbeddingsError
impl Display for EmbeddingsError
impl Eq for EmbeddingsError
Source§impl Error for EmbeddingsError
impl Error for EmbeddingsError
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 EmbeddingsError
impl PartialEq for EmbeddingsError
impl StructuralPartialEq for EmbeddingsError
Auto Trait Implementations§
impl Freeze for EmbeddingsError
impl RefUnwindSafe for EmbeddingsError
impl Send for EmbeddingsError
impl Sync for EmbeddingsError
impl Unpin for EmbeddingsError
impl UnsafeUnpin for EmbeddingsError
impl UnwindSafe for EmbeddingsError
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