pub enum DType {
F32,
F64,
I32,
}
Expand description
DType of tensor
Variants§
Implementations§
source§impl DType
impl DType
sourcepub fn is_floating(self) -> bool
pub fn is_floating(self) -> bool
Check if self is floating point dtype
sourcepub fn zero_value_str(self) -> &'static str
pub fn zero_value_str(self) -> &'static str
Zero value as string
sourcepub fn min_value_str(self) -> &'static str
pub fn min_value_str(self) -> &'static str
Min value as string
Trait Implementations§
source§impl Ord for DType
impl Ord for DType
source§impl PartialEq for DType
impl PartialEq for DType
source§impl PartialOrd for DType
impl PartialOrd for DType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for DType
impl Eq for DType
impl StructuralPartialEq for DType
Auto Trait Implementations§
impl Freeze for DType
impl RefUnwindSafe for DType
impl Send for DType
impl Sync for DType
impl Unpin for DType
impl UnwindSafe for DType
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