#[non_exhaustive]pub enum ArchitectureBoundaryError {
EmptyIdentity,
InvalidPrimaryDtype {
boundary: &'static str,
},
EmptyTensorRole {
boundary: &'static str,
},
DuplicateTensorRole {
boundary: &'static str,
role: String,
},
EmptyTensorShape {
boundary: &'static str,
role: String,
},
InvalidTensorDimension {
boundary: &'static str,
role: String,
},
InvalidInvocationGeometry {
boundary: &'static str,
batch_size: i32,
sequence_length: i32,
},
TensorCount {
boundary: &'static str,
expected: usize,
actual: usize,
},
Invalid {
boundary: &'static str,
detail: String,
},
}Expand description
Invalid architecture-owned partition boundary declaration or payload.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyIdentity
A family boundary omitted its stable identity.
InvalidPrimaryDtype
A family boundary assigned a non-activation dtype to its primary tensor.
EmptyTensorRole
A family boundary declared an empty tensor role.
DuplicateTensorRole
A family boundary declared one tensor role more than once.
EmptyTensorShape
A family boundary declared a rank-zero tensor.
InvalidTensorDimension
A family boundary declared a non-positive fixed dimension.
InvalidInvocationGeometry
A caller supplied non-positive invocation dimensions.
Fields
TensorCount
A transported payload has the wrong tensor cardinality.
Fields
Invalid
Family-specific boundary validation failed.
Trait Implementations§
Source§impl Clone for ArchitectureBoundaryError
impl Clone for ArchitectureBoundaryError
Source§fn clone(&self) -> ArchitectureBoundaryError
fn clone(&self) -> ArchitectureBoundaryError
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 ArchitectureBoundaryError
impl Debug for ArchitectureBoundaryError
Source§impl Display for ArchitectureBoundaryError
impl Display for ArchitectureBoundaryError
impl Eq for ArchitectureBoundaryError
Source§impl Error for ArchitectureBoundaryError
impl Error for ArchitectureBoundaryError
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 From<ArchitectureBoundaryError> for ArchitecturePartitionError
impl From<ArchitectureBoundaryError> for ArchitecturePartitionError
Source§fn from(source: ArchitectureBoundaryError) -> Self
fn from(source: ArchitectureBoundaryError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for ArchitectureBoundaryError
Auto Trait Implementations§
impl Freeze for ArchitectureBoundaryError
impl RefUnwindSafe for ArchitectureBoundaryError
impl Send for ArchitectureBoundaryError
impl Sync for ArchitectureBoundaryError
impl Unpin for ArchitectureBoundaryError
impl UnsafeUnpin for ArchitectureBoundaryError
impl UnwindSafe for ArchitectureBoundaryError
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