pub enum FoundationModelError {
TensorError(String),
ConfigError(String),
TaskNotFound(String),
PretrainingError(String),
FinetuningError(String),
TokenizationError(String),
}Expand description
Foundation model errors
Variants§
TensorError(String)
Tensor operation error
ConfigError(String)
Configuration error
TaskNotFound(String)
Task not found
PretrainingError(String)
Pre-training error
FinetuningError(String)
Fine-tuning error
TokenizationError(String)
Tokenization error
Trait Implementations§
Source§impl Clone for FoundationModelError
impl Clone for FoundationModelError
Source§fn clone(&self) -> FoundationModelError
fn clone(&self) -> FoundationModelError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FoundationModelError
impl Debug for FoundationModelError
Source§impl Display for FoundationModelError
impl Display for FoundationModelError
Source§impl Error for FoundationModelError
impl Error for FoundationModelError
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 From<TorshError> for FoundationModelError
impl From<TorshError> for FoundationModelError
Source§fn from(err: TorshError) -> Self
fn from(err: TorshError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FoundationModelError
impl RefUnwindSafe for FoundationModelError
impl Send for FoundationModelError
impl Sync for FoundationModelError
impl Unpin for FoundationModelError
impl UnsafeUnpin for FoundationModelError
impl UnwindSafe for FoundationModelError
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more