pub enum WeightWriteError {
Validation(String),
Serialize {
path: PathBuf,
source: SafeTensorError,
},
Install {
path: PathBuf,
source: Error,
},
}Expand description
Failure while writing a SafeTensors archive for a GraphJson.
Variants§
Validation(String)
The graph declarations or supplied tensor bytes are inconsistent.
Serialize
SafeTensors could not serialize the archive.
Install
The completed temporary archive could not be installed at its destination.
Trait Implementations§
Source§impl Debug for WeightWriteError
impl Debug for WeightWriteError
Source§impl Display for WeightWriteError
impl Display for WeightWriteError
Source§impl Error for WeightWriteError
impl Error for WeightWriteError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for WeightWriteError
impl !UnwindSafe for WeightWriteError
impl Freeze for WeightWriteError
impl Send for WeightWriteError
impl Sync for WeightWriteError
impl Unpin for WeightWriteError
impl UnsafeUnpin for WeightWriteError
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