Enum caffe2_imports::DeviceTypeProto
source · pub enum DeviceTypeProto {
PROTO_CPU,
PROTO_CUDA,
PROTO_MKLDNN,
PROTO_OPENGL,
PROTO_OPENCL,
PROTO_IDEEP,
PROTO_HIP,
PROTO_FPGA,
PROTO_MSNPU,
PROTO_XLA,
PROTO_MLC,
PROTO_COMPILE_TIME_MAX_DEVICE_TYPES,
}
Variants§
PROTO_CPU
PROTO_CUDA
PROTO_MKLDNN
PROTO_OPENGL
PROTO_OPENCL
PROTO_IDEEP
PROTO_HIP
PROTO_FPGA
PROTO_MSNPU
PROTO_XLA
PROTO_MLC
PROTO_COMPILE_TIME_MAX_DEVICE_TYPES
Trait Implementations§
source§impl Clone for DeviceTypeProto
impl Clone for DeviceTypeProto
source§fn clone(&self) -> DeviceTypeProto
fn clone(&self) -> DeviceTypeProto
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 DeviceTypeProto
impl Debug for DeviceTypeProto
source§impl Default for DeviceTypeProto
impl Default for DeviceTypeProto
source§fn default() -> DeviceTypeProto
fn default() -> DeviceTypeProto
Returns the “default value” for a type. Read more
source§impl Hash for DeviceTypeProto
impl Hash for DeviceTypeProto
source§impl PartialEq<DeviceTypeProto> for DeviceTypeProto
impl PartialEq<DeviceTypeProto> for DeviceTypeProto
source§fn eq(&self, other: &DeviceTypeProto) -> bool
fn eq(&self, other: &DeviceTypeProto) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ProtobufEnum for DeviceTypeProto
impl ProtobufEnum for DeviceTypeProto
source§fn from_i32(value: i32) -> Option<DeviceTypeProto>
fn from_i32(value: i32) -> Option<DeviceTypeProto>
Try to create an enum from
i32
value.
Return None
if value is unknown.source§fn values() -> &'static [DeviceTypeProto]
fn values() -> &'static [DeviceTypeProto]
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 DeviceTypeProto
impl ProtobufValue for DeviceTypeProto
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 DeviceTypeProto
impl Eq for DeviceTypeProto
impl StructuralEq for DeviceTypeProto
impl StructuralPartialEq for DeviceTypeProto
Auto Trait Implementations§
impl RefUnwindSafe for DeviceTypeProto
impl Send for DeviceTypeProto
impl Sync for DeviceTypeProto
impl Unpin for DeviceTypeProto
impl UnwindSafe for DeviceTypeProto
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.