pub struct F32;
Trait Implementations§
source§impl ArangeArgs<F32> for f32
impl ArangeArgs<F32> for f32
source§impl Type for F32
impl Type for F32
type Repr = f32
fn boxed_dtype() -> Box<dyn DType>
fn safetensor_dtype(&self) -> Dtype
fn zero() -> Self::Repr
fn one() -> 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 F32
impl StructuralPartialEq for F32
Auto Trait Implementations§
impl RefUnwindSafe for F32
impl Send for F32
impl Sync for F32
impl Unpin for F32
impl UnwindSafe for F32
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