pub struct SoftmaxOutput<B: Backend> {
pub output: FloatTensor<B>,
pub working: FloatTensor<B>,
}Expand description
Softmax/log-softmax output and its unrounded working-storage value.
Fields§
§output: FloatTensor<B>Output in the original input storage dtype.
working: FloatTensor<B>FP32 output, or FP64 for FP64 inputs, retained for first-order backward.
Auto Trait Implementations§
impl<B> Freeze for SoftmaxOutput<B>
impl<B> RefUnwindSafe for SoftmaxOutput<B>
impl<B> Send for SoftmaxOutput<B>
impl<B> Sync for SoftmaxOutput<B>
impl<B> Unpin for SoftmaxOutput<B>
impl<B> UnsafeUnpin for SoftmaxOutput<B>
impl<B> UnwindSafe for SoftmaxOutput<B>
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