pub struct GatherSpec {
pub offset_dims: Vec<usize>,
pub collapsed_slice_dims: Vec<usize>,
pub start_index_map: Vec<usize>,
pub index_vector_dim: usize,
pub slice_sizes: Vec<usize>,
}Expand description
Gather configuration shared by generic and erased replay.
The fields follow the usual gather vocabulary:
start_index_map[component]names the operand axis controlled by a component in the index vector;collapsed_slice_dimsnames operand axes whose slice size is one and which do not appear as output window axes;offset_dimsnames output axes that represent window offsets;- output axes not in
offset_dimsare batch axes fromstart_indices; index_vector_dim == start_indices_rankrepresents scalar index vectors.
Fields§
§offset_dims: Vec<usize>§collapsed_slice_dims: Vec<usize>§start_index_map: Vec<usize>§index_vector_dim: usize§slice_sizes: Vec<usize>Trait Implementations§
Source§impl Clone for GatherSpec
impl Clone for GatherSpec
Source§fn clone(&self) -> GatherSpec
fn clone(&self) -> GatherSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GatherSpec
impl Debug for GatherSpec
Source§impl PartialEq for GatherSpec
impl PartialEq for GatherSpec
Source§fn eq(&self, other: &GatherSpec) -> bool
fn eq(&self, other: &GatherSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for GatherSpec
impl StructuralPartialEq for GatherSpec
Auto Trait Implementations§
impl Freeze for GatherSpec
impl RefUnwindSafe for GatherSpec
impl Send for GatherSpec
impl Sync for GatherSpec
impl Unpin for GatherSpec
impl UnsafeUnpin for GatherSpec
impl UnwindSafe for GatherSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more