#[non_exhaustive]#[repr(u32)]pub enum ComputeType {
F16 = 1,
Bf16 = 1_024,
Tf32 = 4_096,
Tf32x3 = 8_192,
F32 = 4,
F64 = 16,
U8 = 64,
I8 = 256,
U32 = 128,
I32 = 512,
}Expand description
Encodes cuTENSOR’s legacy compute type.
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.
F16 = 1
Bf16 = 1_024
Tf32 = 4_096
Tf32x3 = 8_192
F32 = 4
F64 = 16
U8 = 64
I8 = 256
U32 = 128
I32 = 512
Trait Implementations§
Source§impl Clone for ComputeType
impl Clone for ComputeType
Source§fn clone(&self) -> ComputeType
fn clone(&self) -> ComputeType
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 moreimpl Copy for ComputeType
Source§impl Debug for ComputeType
impl Debug for ComputeType
Source§impl Display for ComputeType
impl Display for ComputeType
impl Eq for ComputeType
Source§impl From<ComputeType> for u32
impl From<ComputeType> for u32
Source§fn from(enum_value: ComputeType) -> Self
fn from(enum_value: ComputeType) -> Self
Converts to this type from the input type.
Source§impl From<ComputeType> for cutensorComputeType_t
impl From<ComputeType> for cutensorComputeType_t
Source§fn from(value: ComputeType) -> Self
fn from(value: ComputeType) -> Self
Converts to this type from the input type.
Source§impl From<cutensorComputeType_t> for ComputeType
impl From<cutensorComputeType_t> for ComputeType
Source§fn from(value: cutensorComputeType_t) -> Self
fn from(value: cutensorComputeType_t) -> Self
Converts to this type from the input type.
Source§impl Hash for ComputeType
impl Hash for ComputeType
Source§impl PartialEq for ComputeType
impl PartialEq for ComputeType
Source§fn eq(&self, other: &ComputeType) -> bool
fn eq(&self, other: &ComputeType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ComputeType
Source§impl TryFrom<u32> for ComputeType
impl TryFrom<u32> for ComputeType
Source§type Error = TryFromPrimitiveError<ComputeType>
type Error = TryFromPrimitiveError<ComputeType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ComputeType
impl TryFromPrimitive for ComputeType
const NAME: &'static str = "ComputeType"
type Primitive = u32
type Error = TryFromPrimitiveError<ComputeType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for ComputeType
impl RefUnwindSafe for ComputeType
impl Send for ComputeType
impl Sync for ComputeType
impl Unpin for ComputeType
impl UnsafeUnpin for ComputeType
impl UnwindSafe for ComputeType
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