pub enum AttentionSetupError {
Unavailable(AttentionAvailabilityError),
InvalidConfig(InvalidConfigError),
LineSize(LineSizeError),
MatmulSetup(MatmulSetupError),
}Expand description
Errors that can occur during the setup phase of an attention operation.
Variants§
A required hardware or runtime feature is not available.
InvalidConfig(InvalidConfigError)
The provided configuration is invalid or rejected by a component.
LineSize(LineSizeError)
No compatible line size could be found for the given constraints.
MatmulSetup(MatmulSetupError)
Error in underlying matmul
Trait Implementations§
Source§impl Debug for AttentionSetupError
impl Debug for AttentionSetupError
Source§impl Display for AttentionSetupError
impl Display for AttentionSetupError
Source§impl From<AttentionAvailabilityError> for AttentionSetupError
impl From<AttentionAvailabilityError> for AttentionSetupError
Source§fn from(value: AttentionAvailabilityError) -> Self
fn from(value: AttentionAvailabilityError) -> Self
Converts to this type from the input type.
Source§impl From<Box<dyn Display>> for AttentionSetupError
impl From<Box<dyn Display>> for AttentionSetupError
Source§fn from(value: InvalidConfigError) -> Self
fn from(value: InvalidConfigError) -> Self
Converts to this type from the input type.
Source§impl From<LineSizeError> for AttentionSetupError
impl From<LineSizeError> for AttentionSetupError
Source§fn from(value: LineSizeError) -> Self
fn from(value: LineSizeError) -> Self
Converts to this type from the input type.
Source§impl From<MatmulSetupError> for AttentionSetupError
impl From<MatmulSetupError> for AttentionSetupError
Source§fn from(value: MatmulSetupError) -> Self
fn from(value: MatmulSetupError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AttentionSetupError
impl !RefUnwindSafe for AttentionSetupError
impl !Send for AttentionSetupError
impl !Sync for AttentionSetupError
impl Unpin for AttentionSetupError
impl !UnwindSafe for AttentionSetupError
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