pub struct SoftmaxOutput<B>where
B: Backend,{
pub output: <B as BackendTypes>::FloatTensorPrimitive,
pub working: <B as BackendTypes>::FloatTensorPrimitive,
}Expand description
Softmax/log-softmax output and its unrounded working-storage value.
Fields§
§output: <B as BackendTypes>::FloatTensorPrimitiveOutput in the original input storage dtype.
working: <B as BackendTypes>::FloatTensorPrimitiveFP32 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