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§fn default() -> TensorProto_DataType
fn default() -> TensorProto_DataType
Returns the “default value” for a type. Read more
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 values() -> &'static [TensorProto_DataType]
fn values() -> &'static [TensorProto_DataType]
Get all enum values for enum type.
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?
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 StructuralEq for TensorProto_DataType
impl StructuralPartialEq for TensorProto_DataType
Auto Trait Implementations§
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§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.