pub struct BinaryCmpArgs<'a, T: Element, const N: usize> {
pub a: TensorRef<'a, T, N>,
pub b: TensorRef<'a, T, N>,
pub y: TensorMut<'a, u8, N>,
}Expand description
Args bundle for a binary comparison launch.
Inputs are T; output is u8 (0 / 1). Aliasing y with a or b
is unsafe because y has a different element size than the inputs;
the kernel does NOT alias-check.
Fields§
§a: TensorRef<'a, T, N>First input.
b: TensorRef<'a, T, N>Second input.
y: TensorMut<'a, u8, N>Output. u8 storage: 0 = false, 1 = true.
Auto Trait Implementations§
impl<'a, T, const N: usize> !UnwindSafe for BinaryCmpArgs<'a, T, N>
impl<'a, T, const N: usize> Freeze for BinaryCmpArgs<'a, T, N>
impl<'a, T, const N: usize> RefUnwindSafe for BinaryCmpArgs<'a, T, N>where
T: RefUnwindSafe,
impl<'a, T, const N: usize> Send for BinaryCmpArgs<'a, T, N>where
T: Sync,
impl<'a, T, const N: usize> Sync for BinaryCmpArgs<'a, T, N>where
T: Sync,
impl<'a, T, const N: usize> Unpin for BinaryCmpArgs<'a, T, N>
impl<'a, T, const N: usize> UnsafeUnpin for BinaryCmpArgs<'a, T, N>
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