pub enum GatherScatterMode {
Clip,
FillOrDrop,
PromiseInBounds,
}Expand description
How gather and scatter treat out-of-bounds indices.
Variants§
Clip
Indices are clamped so that the slice or window is in bounds.
FillOrDrop
Out-of-bounds updates are dropped (scatter only).
PromiseInBounds
The caller promises that indices are in bounds; XLA’s native behavior (clamping for gather, dropping for scatter) applies otherwise.
Trait Implementations§
Source§impl Clone for GatherScatterMode
impl Clone for GatherScatterMode
impl Copy for GatherScatterMode
Source§impl Debug for GatherScatterMode
impl Debug for GatherScatterMode
Source§impl Default for GatherScatterMode
impl Default for GatherScatterMode
impl Eq for GatherScatterMode
Source§impl Hash for GatherScatterMode
impl Hash for GatherScatterMode
Source§impl PartialEq for GatherScatterMode
impl PartialEq for GatherScatterMode
impl StructuralPartialEq for GatherScatterMode
Auto Trait Implementations§
impl Freeze for GatherScatterMode
impl RefUnwindSafe for GatherScatterMode
impl Send for GatherScatterMode
impl Sync for GatherScatterMode
impl Unpin for GatherScatterMode
impl UnsafeUnpin for GatherScatterMode
impl UnwindSafe for GatherScatterMode
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