Struct caffe2_opt::Caffe2Annotation
source · pub struct Caffe2Annotation<T, U> { /* private fields */ }
Implementations§
source§impl<T, U> Caffe2Annotation<T, U>
impl<T, U> Caffe2Annotation<T, U>
pub fn new(device: String) -> Self
pub fn set_operator_def(&mut self, op_def: &OperatorDef)
pub fn has_operator_def(&self) -> bool
pub fn get_operator_def(&self) -> &OperatorDef
pub fn get_mutable_operator_def(&mut self) -> *mut OperatorDef
sourcepub fn set_device_option(&mut self, dev_opt: &DeviceOption)
pub fn set_device_option(&mut self, dev_opt: &DeviceOption)
Distributed annotations
pub fn has_device_option(&self) -> bool
pub fn get_device_option(&self) -> &DeviceOption
pub fn get_mutable_device_option(&mut self) -> *mut DeviceOption
pub fn set_device(&mut self, device: String)
pub fn get_device(&self) -> String
pub fn set_device_type(&mut self, device: i32)
pub fn get_device_type(&self) -> i32
pub fn set_parallelization(&mut self, s: ParallelizationScheme, num: i32)
pub fn get_parallelization_scheme(&self) -> ParallelizationScheme
pub fn get_parallelization(&self) -> i32
pub fn set_key_node(&mut self, n: NodeRef<T, U>)
pub fn get_key_node(&self) -> &NodeRef<T, U>
pub fn set_length_node(&mut self, n: NodeRef<T, U>)
pub fn get_length_node(&self) -> &NodeRef<T, U>
pub fn set_component_levels(&mut self, components: Vec<String>)
pub fn get_component_levels(&self) -> Vec<String>
pub fn classof(&mut self, a: *const Annotation) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<T, U> RefUnwindSafe for Caffe2Annotation<T, U>where T: RefUnwindSafe, U: RefUnwindSafe,
impl<T, U> !Send for Caffe2Annotation<T, U>
impl<T, U> !Sync for Caffe2Annotation<T, U>
impl<T, U> Unpin for Caffe2Annotation<T, U>
impl<T, U> UnwindSafe for Caffe2Annotation<T, U>where T: RefUnwindSafe, U: RefUnwindSafe,
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.