pub struct GatherDims {
pub offset_dims: Vec<usize>,
pub collapsed_slice_dims: Vec<usize>,
pub start_index_map: Vec<usize>,
pub operand_batching_dims: Vec<usize>,
pub start_indices_batching_dims: Vec<usize>,
}Expand description
StableHLO’s gather dimension numbers; the index vector is the last dimension of the indices, as in JAX.
Fields§
§offset_dims: Vec<usize>The dimensions of the result that index into a slice.
collapsed_slice_dims: Vec<usize>Operand dimensions whose slices have size 1 and are dropped.
start_index_map: Vec<usize>The operand dimension that each index vector component starts.
operand_batching_dims: Vec<usize>Operand batching dimensions, matched with start_indices_batching_dims.
start_indices_batching_dims: Vec<usize>Batching dimensions of the indices.
Trait Implementations§
Source§impl Clone for GatherDims
impl Clone for GatherDims
Source§fn clone(&self) -> GatherDims
fn clone(&self) -> GatherDims
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 GatherDims
impl Debug for GatherDims
Source§impl Default for GatherDims
impl Default for GatherDims
Source§fn default() -> GatherDims
fn default() -> GatherDims
Returns the “default value” for a type. Read more
impl Eq for GatherDims
Source§impl Hash for GatherDims
impl Hash for GatherDims
Source§impl PartialEq for GatherDims
impl PartialEq for GatherDims
impl StructuralPartialEq for GatherDims
Auto Trait Implementations§
impl Freeze for GatherDims
impl RefUnwindSafe for GatherDims
impl Send for GatherDims
impl Sync for GatherDims
impl Unpin for GatherDims
impl UnsafeUnpin for GatherDims
impl UnwindSafe for GatherDims
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