pub struct BF16;
Trait Implementations§
source§impl PartialEq for BF16
impl PartialEq for BF16
source§impl Type for BF16
impl Type for BF16
type Repr = bf16
fn boxed_dtype() -> Box<dyn DType>
fn safetensor_dtype(&self) -> Dtype
fn zero() -> Self::Repr
fn one() -> Self::Repr
fn from_f64(val: f64) -> Option<Self::Repr>
fn primitive_full_zero() -> Full<Self>
fn primitive_full_one() -> Full<Self>
fn primitive_rand() -> Random<Self>
fn primitive_randn() -> Normal<Self>
fn primitive_as_type(&self) -> ToDType<Self>
fn size_of_elem() -> usize
impl Copy for BF16
impl StructuralPartialEq for BF16
Auto Trait Implementations§
impl Freeze for BF16
impl RefUnwindSafe for BF16
impl Send for BF16
impl Sync for BF16
impl Unpin for BF16
impl UnwindSafe for BF16
Blanket Implementations§
source§impl<T, M> ApplyModule<M> for Twhere
M: Module<Input = T>,
impl<T, M> ApplyModule<M> for Twhere
M: Module<Input = 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
source§impl<D> DType for Dwhere
D: Type,
impl<D> DType for Dwhere
D: Type,
fn as_any(&self) -> &(dyn Any + 'static)
fn clone_boxed(&self) -> Box<dyn DType>
fn equal(&self, rhs: &dyn DType) -> bool
fn primitive_full_zero(&self) -> Box<dyn Primitive>
fn primitive_full_one(&self) -> Box<dyn Primitive>
fn primitive_rand(&self) -> Box<dyn Primitive>
fn primitive_randn(&self) -> Box<dyn Primitive>
fn primitive_as_dtype(&self) -> Box<dyn Primitive>
fn size_of_elem(&self) -> usize
fn safetensor_dtype(&self) -> Dtype
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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