Struct caffe2op_mergeid::MergeIdListsOp
source · pub struct MergeIdListsOp<Context> { /* private fields */ }
Expand description
| MergeIdLists: Merge multiple ID_LISTs
| into a single ID_LIST.
|
| An ID_LIST is a list of IDs (may be ints,
| often longs) that represents a single
| feature. As described in https://caffe2.ai/docs/sparse-operations.html,
| a batch of ID_LIST examples is represented
| as a pair of lengths and values where
| the lengths
(int32) segment the values
| or ids (int32/int64) into examples.
|
| Given multiple inputs of the form lengths_0,
| values_0, lengths_1, values_1, …
| which correspond to lengths and values
| of ID_LISTs of different features,
| this operator produces a merged ID_LIST
| that combines the ID_LIST features.
| The final merged output is described
| by a lengths and values vector.
|
| WARNING: The merge makes no guarantee
| about the relative order of ID_LISTs
| within a batch. This can be an issue if
| ID_LIST are order sensitive.
|
Implementations§
source§impl<Context> MergeIdListsOp<Context>
impl<Context> MergeIdListsOp<Context>
pub fn do_run_with_type<T>(&mut self) -> bool
pub fn run_on_device(&mut self) -> bool
Auto Trait Implementations§
impl<Context> !RefUnwindSafe for MergeIdListsOp<Context>
impl<Context> !Send for MergeIdListsOp<Context>
impl<Context> !Sync for MergeIdListsOp<Context>
impl<Context> Unpin for MergeIdListsOp<Context>where Context: Unpin,
impl<Context> !UnwindSafe for MergeIdListsOp<Context>
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>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.