#[non_exhaustive]pub enum CpuProviderUnsupported {
DType(DType),
Rank {
lhs: usize,
rhs: usize,
},
Layout(CpuOperand),
Conjugation,
Accumulation,
StridedBatch,
Grouped,
RuntimeUnavailable,
}Expand description
Allocation-free reason that a provider cannot execute a validated request.
An unsupported outcome must be reported before the provider mutates the output.
§Examples
use tenferro_cpu::provider::CpuProviderUnsupported;
assert_eq!(
CpuProviderUnsupported::RuntimeUnavailable,
CpuProviderUnsupported::RuntimeUnavailable,
);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.
DType(DType)
The provider does not implement the scalar dtype.
Rank
The provider does not implement the input ranks.
Layout(CpuOperand)
The provider does not implement an operand layout.
Conjugation
The provider cannot implement the requested conjugation.
Accumulation
The provider cannot implement the requested alpha/beta update.
StridedBatch
The provider cannot implement a strided batch.
Grouped
The provider cannot implement grouped GEMM.
The optional provider runtime is not available in this process.
Trait Implementations§
Source§impl Clone for CpuProviderUnsupported
impl Clone for CpuProviderUnsupported
Source§fn clone(&self) -> CpuProviderUnsupported
fn clone(&self) -> CpuProviderUnsupported
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 CpuProviderUnsupported
impl Debug for CpuProviderUnsupported
Source§impl PartialEq for CpuProviderUnsupported
impl PartialEq for CpuProviderUnsupported
Source§fn eq(&self, other: &CpuProviderUnsupported) -> bool
fn eq(&self, other: &CpuProviderUnsupported) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CpuProviderUnsupported
impl Eq for CpuProviderUnsupported
impl StructuralPartialEq for CpuProviderUnsupported
Auto Trait Implementations§
impl Freeze for CpuProviderUnsupported
impl RefUnwindSafe for CpuProviderUnsupported
impl Send for CpuProviderUnsupported
impl Sync for CpuProviderUnsupported
impl Unpin for CpuProviderUnsupported
impl UnsafeUnpin for CpuProviderUnsupported
impl UnwindSafe for CpuProviderUnsupported
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more