pub struct I64;
Trait Implementations§
source§impl Type for I64
impl Type for I64
type Repr = i64
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 I64
impl StructuralPartialEq for I64
Auto Trait Implementations§
impl Freeze for I64
impl RefUnwindSafe for I64
impl Send for I64
impl Sync for I64
impl Unpin for I64
impl UnwindSafe for I64
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