pub enum Bf16Tag {
F32,
Bf16,
}Expand description
Tag for the set that pairs the standard narrow type with f32.
§Examples
use tenferro_bf16_proof::Bf16Tag;
assert_ne!(Bf16Tag::F32, Bf16Tag::Bf16);Variants§
Implementations§
Source§impl Bf16Tag
impl Bf16Tag
Sourcepub const SPECS: &'static [MemberSpec]
pub const SPECS: &'static [MemberSpec]
Promotion facts of every member, in declaration order.
Sourcepub const fn spec(self) -> MemberSpec
pub const fn spec(self) -> MemberSpec
Promotion facts of this member.
§Examples
use tenferro_tensor_core::{MemberKind, DType};
assert_eq!(DType::F64.spec().kind, MemberKind::Float);Trait Implementations§
impl Copy for Bf16Tag
impl Eq for Bf16Tag
impl StructuralPartialEq for Bf16Tag
Auto Trait Implementations§
impl Freeze for Bf16Tag
impl RefUnwindSafe for Bf16Tag
impl Send for Bf16Tag
impl Sync for Bf16Tag
impl Unpin for Bf16Tag
impl UnsafeUnpin for Bf16Tag
impl UnwindSafe for Bf16Tag
Blanket Implementations§
impl<T> Boilerplate for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
Checks if this value is equivalent to the given key. Read more
impl<T, U> Imply<T> for U
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