pub struct LogSoftmax<'src, 'dst> { /* private fields */ }Expand description
Computes the log softmax function over a slice of floats.
This is conceptually log(softmax(x)) which can be rewritten as
log(exp(x) / sum(exp(x))).
Implementations§
Source§impl<'src, 'dst> LogSoftmax<'src, 'dst>
impl<'src, 'dst> LogSoftmax<'src, 'dst>
Trait Implementations§
Source§impl<'dst> SimdOp for LogSoftmax<'_, 'dst>
impl<'dst> SimdOp for LogSoftmax<'_, 'dst>
Auto Trait Implementations§
impl<'src, 'dst> !UnwindSafe for LogSoftmax<'src, 'dst>
impl<'src, 'dst> Freeze for LogSoftmax<'src, 'dst>
impl<'src, 'dst> RefUnwindSafe for LogSoftmax<'src, 'dst>
impl<'src, 'dst> Send for LogSoftmax<'src, 'dst>
impl<'src, 'dst> Sync for LogSoftmax<'src, 'dst>
impl<'src, 'dst> Unpin for LogSoftmax<'src, 'dst>
impl<'src, 'dst> UnsafeUnpin for LogSoftmax<'src, 'dst>
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