pub enum TensorProto_DataType {
Show 15 variants
UNDEFINED,
FLOAT,
INT32,
BYTE,
STRING,
BOOL,
UINT8,
INT8,
UINT16,
INT16,
INT64,
FLOAT16,
DOUBLE,
ZERO_COLLISION_HASH,
REBATCHING_BUFFER,
}
Variants§
UNDEFINED
FLOAT
INT32
BYTE
STRING
BOOL
UINT8
INT8
UINT16
INT16
INT64
FLOAT16
DOUBLE
ZERO_COLLISION_HASH
REBATCHING_BUFFER
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 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 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<TensorProto_DataType> for TensorProto_DataType
impl PartialEq<TensorProto_DataType> for TensorProto_DataType
source§fn eq(&self, other: &TensorProto_DataType) -> bool
fn eq(&self, other: &TensorProto_DataType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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 enum_descriptor_static() -> &'static EnumDescriptor
fn enum_descriptor_static() -> &'static EnumDescriptor
Get enum descriptor by type.
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§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?