pub enum TensorProto_DataType {
Show 17 variants
UNDEFINED = 0,
FLOAT = 1,
UINT8 = 2,
INT8 = 3,
UINT16 = 4,
INT16 = 5,
INT32 = 6,
INT64 = 7,
STRING = 8,
BOOL = 9,
FLOAT16 = 10,
DOUBLE = 11,
UINT32 = 12,
UINT64 = 13,
COMPLEX64 = 14,
COMPLEX128 = 15,
BFLOAT16 = 16,
}Variants§
UNDEFINED = 0
FLOAT = 1
UINT8 = 2
INT8 = 3
UINT16 = 4
INT16 = 5
INT32 = 6
INT64 = 7
STRING = 8
BOOL = 9
FLOAT16 = 10
DOUBLE = 11
UINT32 = 12
UINT64 = 13
COMPLEX64 = 14
COMPLEX128 = 15
BFLOAT16 = 16
Trait Implementations§
Source§impl Clone for TensorProto_DataType
impl Clone for TensorProto_DataType
Source§fn clone(&self) -> TensorProto_DataType
fn clone(&self) -> TensorProto_DataType
Returns a duplicate 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 TensorProto_DataType
impl Debug for TensorProto_DataType
Source§impl Default for TensorProto_DataType
impl Default for TensorProto_DataType
Source§impl Hash for TensorProto_DataType
impl Hash for TensorProto_DataType
Source§impl PartialEq for TensorProto_DataType
impl PartialEq for TensorProto_DataType
Source§impl ProtobufEnum for TensorProto_DataType
impl ProtobufEnum for TensorProto_DataType
Source§fn from_i32(value: i32) -> Option<TensorProto_DataType>
fn from_i32(value: i32) -> Option<TensorProto_DataType>
Try to create an enum from
i32 value.
Return None if value is unknown.Source§fn descriptor(&self) -> &'static EnumValueDescriptor
fn descriptor(&self) -> &'static EnumValueDescriptor
Get enum value descriptor.
Source§fn enum_descriptor(&self) -> &'static EnumDescriptor
fn enum_descriptor(&self) -> &'static EnumDescriptor
Get enum descriptor.
Source§fn enum_descriptor_static() -> &'static EnumDescriptor
fn enum_descriptor_static() -> &'static EnumDescriptor
Get enum descriptor by type.
Source§impl ProtobufValue for TensorProto_DataType
impl ProtobufValue for TensorProto_DataType
Source§fn as_ref(&self) -> ReflectValueRef<'_>
fn as_ref(&self) -> ReflectValueRef<'_>
As ref
Source§fn is_non_zero(&self) -> bool
fn is_non_zero(&self) -> bool
Is value non-zero?
Source§fn as_ref_copy(&self) -> ReflectValueRef<'static>
fn as_ref_copy(&self) -> ReflectValueRef<'static>
impl Copy for TensorProto_DataType
impl Eq for TensorProto_DataType
impl StructuralPartialEq for TensorProto_DataType
Auto Trait Implementations§
impl Freeze for TensorProto_DataType
impl RefUnwindSafe for TensorProto_DataType
impl Send for TensorProto_DataType
impl Sync for TensorProto_DataType
impl Unpin for TensorProto_DataType
impl UnwindSafe for TensorProto_DataType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.