pub fn gather<T: Copy>(
x: &[T],
shape: &[usize],
indices: &[i64],
indices_shape: &[usize],
d: &GatherDims,
slice_sizes: &[usize],
) -> Vec<T>Expand description
gather, with start indices clamped so that slices are in bounds (the
semantics of every mode that gather supports).