pub struct Softmax<D: Float, T, const RANK: usize> {
pub dim: usize,
/* private fields */
}Expand description
Softmax activation layer: normalizes along dim so values sum to 1.
Fields§
§dim: usizeThe dimension to normalize along.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<D, T, const RANK: usize> Freeze for Softmax<D, T, RANK>
impl<D, T, const RANK: usize> RefUnwindSafe for Softmax<D, T, RANK>where
D: RefUnwindSafe,
T: RefUnwindSafe,
impl<D, T, const RANK: usize> Send for Softmax<D, T, RANK>
impl<D, T, const RANK: usize> Sync for Softmax<D, T, RANK>
impl<D, T, const RANK: usize> Unpin for Softmax<D, T, RANK>
impl<D, T, const RANK: usize> UnsafeUnpin for Softmax<D, T, RANK>
impl<D, T, const RANK: usize> UnwindSafe for Softmax<D, T, RANK>where
D: UnwindSafe,
T: UnwindSafe,
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