pub struct ArgReduceArgs<'a, T: Element, const N: usize, I: IndexOutputElement = i64> {
pub x: TensorRef<'a, T, N>,
pub y: TensorMut<'a, I, N>,
}Expand description
Args bundle for an arg-reduction launch.
Note the asymmetric dtypes: x is the value dtype T, y is the
index dtype I (defaults to i64 — PyTorch convention).
Fields§
§x: TensorRef<'a, T, N>Input.
y: TensorMut<'a, I, N>Output indices — shape matches input with reduce axis = 1. Type
parameter I selects u32, i32, or i64 (default).
Auto Trait Implementations§
impl<'a, T, const N: usize, I = i64> !UnwindSafe for ArgReduceArgs<'a, T, N, I>
impl<'a, T, const N: usize, I> Freeze for ArgReduceArgs<'a, T, N, I>
impl<'a, T, const N: usize, I> RefUnwindSafe for ArgReduceArgs<'a, T, N, I>where
T: RefUnwindSafe,
I: RefUnwindSafe,
impl<'a, T, const N: usize, I> Send for ArgReduceArgs<'a, T, N, I>
impl<'a, T, const N: usize, I> Sync for ArgReduceArgs<'a, T, N, I>
impl<'a, T, const N: usize, I> Unpin for ArgReduceArgs<'a, T, N, I>
impl<'a, T, const N: usize, I> UnsafeUnpin for ArgReduceArgs<'a, T, N, I>
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