pub enum ConversionPlanError {
NoTensorPolicies,
DuplicateSourcePolicy {
name: String,
},
SourceTensorMissing {
name: String,
},
SourceTensorUnplanned {
name: String,
},
DuplicateArtifactTensor {
name: String,
},
EmptyArtifactTensorName {
source_name: String,
},
Q8RequiresMatrix {
name: String,
rank: usize,
},
Q8EmptyOutputChannel {
name: String,
},
Q8OutputChannelTooWide {
name: String,
width: usize,
limit: usize,
},
Q8OutputChannelCountTooLarge {
name: String,
rows: usize,
limit: usize,
},
ShapeOutOfRange {
name: String,
},
SectionLengthOverflow {
name: String,
},
}Expand description
A plan validation failure detected before a destination stream is opened.
Variants§
NoTensorPolicies
The plan did not declare a conversion recipe for any source tensor.
DuplicateSourcePolicy
One source tensor was declared twice with conflicting or duplicate policies.
SourceTensorMissing
A policy named a tensor absent from the validated source checkpoint.
SourceTensorUnplanned
A source tensor had no policy, so emitting an artifact would silently omit it.
DuplicateArtifactTensor
Two policies would create the same artifact tensor name.
EmptyArtifactTensorName
Artifact names cannot be empty because the container uses them as stable keys.
Q8RequiresMatrix
A Q8 policy was assigned to a non-matrix tensor.
Q8EmptyOutputChannel
A Q8 matrix had no values in an output channel.
Q8OutputChannelTooWide
A Q8 matrix would exceed the converter’s fixed row scratch bound.
Fields
Q8OutputChannelCountTooLarge
A Q8 scale tail would exceed the converter’s fixed memory bound.
Fields
ShapeOutOfRange
The source shape cannot be represented by the portable u64 container directory.
SectionLengthOverflow
The derived section length could not fit in the portable container format.
Trait Implementations§
Source§impl Clone for ConversionPlanError
impl Clone for ConversionPlanError
Source§fn clone(&self) -> ConversionPlanError
fn clone(&self) -> ConversionPlanError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConversionPlanError
impl Debug for ConversionPlanError
Source§impl Display for ConversionPlanError
impl Display for ConversionPlanError
impl Eq for ConversionPlanError
Source§impl Error for ConversionPlanError
impl Error for ConversionPlanError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()