pub enum WeightResolveError {
ReadFile {
path: PathBuf,
source: Error,
},
ManifestJson {
path: PathBuf,
source: Error,
},
Safetensors(String),
Manifest(String),
Missing(String),
}Expand description
Failure while resolving external weights for a GraphJson.
Variants§
ReadFile
Could not read a required file from disk.
ManifestJson
Manifest JSON is invalid.
Safetensors(String)
SafeTensors–specific validation or parse error.
Manifest(String)
Manifest + weights blob resolution error.
Missing(String)
No usable weight source was found next to the graph.
Trait Implementations§
Source§impl Debug for WeightResolveError
impl Debug for WeightResolveError
Source§impl Display for WeightResolveError
impl Display for WeightResolveError
Source§impl Error for WeightResolveError
impl Error for WeightResolveError
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 Freeze for WeightResolveError
impl !RefUnwindSafe for WeightResolveError
impl Send for WeightResolveError
impl Sync for WeightResolveError
impl Unpin for WeightResolveError
impl UnsafeUnpin for WeightResolveError
impl !UnwindSafe for WeightResolveError
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