Struct caffe2_nomnigraph::NeuralNetOperator
source · pub struct NeuralNetOperator { /* private fields */ }
Implementations§
source§impl NeuralNetOperator
impl NeuralNetOperator
pub fn new_from_kind_opcode_layout(k: NNKind, i: Opcode, l: NNLayout) -> Self
pub fn new_from_kind_and_opcode(k: NNKind, i: Opcode) -> Self
pub fn new_from_kind_and_layout(k: NNKind, l: NNLayout) -> Self
pub fn get_kind(&self) -> NNKind
pub fn set_layout(&mut self, l: NNLayout)
pub fn get_layout(&self) -> NNLayout
pub fn set_annotation(&mut self, extra_annotation: Box<Annotation>)
pub fn get_annotation(&self) -> *const Annotation
pub fn get_mutable_annotation(&mut self) -> *mut Annotation
sourcepub fn check_inputs_and_outputs(
&mut self,
inputs: Vec<*const NeuralNetData>,
outputs: Vec<*const NeuralNetData>
) -> bool
pub fn check_inputs_and_outputs( &mut self, inputs: Vec<*const NeuralNetData>, outputs: Vec<*const NeuralNetData> ) -> bool
| ———– | @brief | | Validate the inputs and outputs to this | operator. | | \p inputs A vector of references to | | NeuralNetData types that represent | the data being fed into the operator. | | \p outputs A vector of references to | | NeuralNetData types that represent | the data being outputted by the operator. | | | ———– | @return | | true if the inputs and outputs are compatible | with the operator. |
Trait Implementations§
source§impl Default for NeuralNetOperator
impl Default for NeuralNetOperator
source§impl From<NNKind> for NeuralNetOperator
impl From<NNKind> for NeuralNetOperator
Auto Trait Implementations§
impl RefUnwindSafe for NeuralNetOperator
impl Send for NeuralNetOperator
impl Sync for NeuralNetOperator
impl Unpin for NeuralNetOperator
impl UnwindSafe for NeuralNetOperator
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.