pub enum PlacementPlanError {
InvalidRank {
world_size: usize,
global_rank: usize,
},
OwnerOutOfBounds {
owner: usize,
world_size: usize,
},
AxisOutOfBounds {
axis: usize,
rank: usize,
},
InvalidShard {
axis: usize,
index: usize,
parts: usize,
dimension: usize,
},
InvalidRange {
axis: usize,
start: usize,
end: usize,
dimension: Option<usize>,
},
InvalidIndices {
axis: usize,
},
ArithmeticOverflow,
UnexpectedSource {
checkpoint_source: String,
},
SourceShapeMismatch {
checkpoint_source: String,
expected: Vec<usize>,
actual: Vec<usize>,
},
Coverage {
missing: Vec<String>,
unexpected: Vec<String>,
},
}Expand description
Failure while validating or resolving a complete logical placement plan.
Variants§
InvalidRank
The selected world/rank pair is invalid.
OwnerOutOfBounds
A placement owner exceeds the selected world.
AxisOutOfBounds
A tensor axis exceeds its rank.
InvalidShard
Equal-shard geometry is invalid.
Fields
InvalidRange
Explicit range geometry is invalid.
Fields
InvalidIndices
Explicit indices are empty, duplicated, or out of bounds.
ArithmeticOverflow
Slice arithmetic overflowed.
UnexpectedSource
A strict plan did not declare one checkpoint source.
SourceShapeMismatch
Admitted and actual source shapes differ.
Fields
Coverage
Local materialization did not exactly cover the plan.
Trait Implementations§
Source§impl Clone for PlacementPlanError
impl Clone for PlacementPlanError
Source§fn clone(&self) -> PlacementPlanError
fn clone(&self) -> PlacementPlanError
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 PlacementPlanError
impl Debug for PlacementPlanError
Source§impl Display for PlacementPlanError
impl Display for PlacementPlanError
impl Eq for PlacementPlanError
Source§impl Error for PlacementPlanError
impl Error for PlacementPlanError
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 PartialEq for PlacementPlanError
impl PartialEq for PlacementPlanError
impl StructuralPartialEq for PlacementPlanError
Auto Trait Implementations§
impl Freeze for PlacementPlanError
impl RefUnwindSafe for PlacementPlanError
impl Send for PlacementPlanError
impl Sync for PlacementPlanError
impl Unpin for PlacementPlanError
impl UnsafeUnpin for PlacementPlanError
impl UnwindSafe for PlacementPlanError
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