Enum wasi_nn::TensorType
source · #[repr(C)]pub enum TensorType {
F16,
F32,
F64,
U8,
I32,
I64,
}
Expand description
The type of the elements in a tensor.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for TensorType
impl Clone for TensorType
source§fn clone(&self) -> TensorType
fn clone(&self) -> TensorType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TensorType
impl Debug for TensorType
source§impl Hash for TensorType
impl Hash for TensorType
source§impl Ord for TensorType
impl Ord for TensorType
source§fn cmp(&self, other: &TensorType) -> Ordering
fn cmp(&self, other: &TensorType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<TensorType> for TensorType
impl PartialEq<TensorType> for TensorType
source§fn eq(&self, other: &TensorType) -> bool
fn eq(&self, other: &TensorType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TensorType> for TensorType
impl PartialOrd<TensorType> for TensorType
source§fn partial_cmp(&self, other: &TensorType) -> Option<Ordering>
fn partial_cmp(&self, other: &TensorType) -> Option<Ordering>
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 TensorType
impl Eq for TensorType
impl StructuralEq for TensorType
impl StructuralPartialEq for TensorType
Auto Trait Implementations§
impl RefUnwindSafe for TensorType
impl Send for TensorType
impl Sync for TensorType
impl Unpin for TensorType
impl UnwindSafe for TensorType
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