pub enum ElementType {
Show 20 variants
None,
Bool,
Int4,
Int8,
Int16,
Int32,
Int64,
UInt8,
UInt16,
UInt32,
UInt64,
Float16,
BFloat16,
Float32,
Float64,
Complex64,
Complex128,
TfResource,
TfString,
TfVariant,
}Expand description
The element type of a tensor buffer.
Variants§
None
Bool
Int4
Int8
Int16
Int32
Int64
UInt8
UInt16
UInt32
UInt64
Float16
BFloat16
Float32
Float64
Complex64
Complex128
TfResource
TfString
TfVariant
Trait Implementations§
Source§impl Clone for ElementType
impl Clone for ElementType
Source§fn clone(&self) -> ElementType
fn clone(&self) -> ElementType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ElementType
impl Debug for ElementType
Source§impl PartialEq for ElementType
impl PartialEq for ElementType
Source§fn eq(&self, other: &ElementType) -> bool
fn eq(&self, other: &ElementType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ElementType
impl StructuralPartialEq for ElementType
Auto Trait Implementations§
impl Freeze for ElementType
impl RefUnwindSafe for ElementType
impl Send for ElementType
impl Sync for ElementType
impl Unpin for ElementType
impl UnsafeUnpin for ElementType
impl UnwindSafe for ElementType
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