pub enum BindingPlacementError {
Show 13 variants
MissingLogicalTarget {
binding: String,
},
UnknownLogicalTarget {
binding: String,
target: String,
},
CompoundPlacementRequiresRecipe {
binding: String,
},
ByteGeometry {
binding: String,
},
AxisOutOfBounds {
axis: usize,
rank: usize,
},
UnalignedBoundary {
axis: usize,
boundary: usize,
semantic: usize,
stored: usize,
},
InvalidShard {
axis: usize,
index: usize,
parts: usize,
stored: usize,
},
IndexedPackedStorage {
axis: usize,
semantic: usize,
stored: usize,
},
NonLocalPlacement {
placement: TensorPlacement,
},
Store(StoreError),
Recipe(RecipeError),
Declaration(ResidencyDeclarationError),
Selection(WeightBindingSelectionError),
}Expand description
Failure while lowering logical placement into bounded source selections.
Variants§
MissingLogicalTarget
A binding omitted its architecture-logical target.
UnknownLogicalTarget
The logical target is absent from the selected layout.
CompoundPlacementRequiresRecipe
A source-less direct declaration cannot express compound placement.
ByteGeometry
Rank-local byte calculation overflowed or was not integral.
AxisOutOfBounds
A placement axis exceeds a tensor rank.
UnalignedBoundary
A semantic boundary is not exactly representable in packed storage.
Fields
InvalidShard
Equal-shard geometry is invalid.
Fields
IndexedPackedStorage
Indexed semantic selection cannot address differently packed storage.
Fields
NonLocalPlacement
Execution-unit binding selected an omit or remote-rank placement.
Fields
placement: TensorPlacementRejected non-local placement.
Store(StoreError)
Checkpoint access failed.
Recipe(RecipeError)
Recipe inference failed.
Declaration(ResidencyDeclarationError)
Lowered residency declaration is invalid.
Selection(WeightBindingSelectionError)
Bounded source selection failed.
Trait Implementations§
Source§impl Debug for BindingPlacementError
impl Debug for BindingPlacementError
Source§impl Display for BindingPlacementError
impl Display for BindingPlacementError
Source§impl Error for BindingPlacementError
impl Error for BindingPlacementError
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()