pub struct SparsemaxArgs<'a, T: Element, const N: usize> {
pub x: TensorRef<'a, T, N>,
pub y: TensorMut<'a, T, N>,
}Expand description
Args bundle for a Sparsemax forward launch.
Fields§
§x: TensorRef<'a, T, N>Input logits.
y: TensorMut<'a, T, N>Output tensor — same shape as input.
Auto Trait Implementations§
impl<'a, T, const N: usize> !UnwindSafe for SparsemaxArgs<'a, T, N>
impl<'a, T, const N: usize> Freeze for SparsemaxArgs<'a, T, N>
impl<'a, T, const N: usize> RefUnwindSafe for SparsemaxArgs<'a, T, N>where
T: RefUnwindSafe,
impl<'a, T, const N: usize> Send for SparsemaxArgs<'a, T, N>
impl<'a, T, const N: usize> Sync for SparsemaxArgs<'a, T, N>where
T: Sync,
impl<'a, T, const N: usize> Unpin for SparsemaxArgs<'a, T, N>
impl<'a, T, const N: usize> UnsafeUnpin for SparsemaxArgs<'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