pub struct AdaptiveLogSoftmaxResult {
pub output: Matrix,
pub loss: Matrix,
}Expand description
Output bundle of AdaptiveLogSoftmaxWithLoss::forward: the assembled
[N, V] log-probabilities and the mean negative log-likelihood scalar.
Fields§
§output: Matrix§loss: MatrixAuto Trait Implementations§
impl !RefUnwindSafe for AdaptiveLogSoftmaxResult
impl !Send for AdaptiveLogSoftmaxResult
impl !Sync for AdaptiveLogSoftmaxResult
impl !UnwindSafe for AdaptiveLogSoftmaxResult
impl Forget for AdaptiveLogSoftmaxResult
impl Freeze for AdaptiveLogSoftmaxResultwhere
*const RcInner<RefCell<RuntimeState>> is !null: Freeze,
PhantomData<RcInner<RefCell<RuntimeState>>>: Freeze,
*const RcInner<StorageInner> is !null: Freeze,
PhantomData<RcInner<StorageInner>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<usize>: Freeze,
*const RcInner<MatrixSemantic> is !null: Freeze,
PhantomData<RcInner<MatrixSemantic>>: Freeze,
PhantomData<Rc<()>>: Freeze,
impl Move for AdaptiveLogSoftmaxResult
impl Unpin for AdaptiveLogSoftmaxResult
impl UnsafeUnpin for AdaptiveLogSoftmaxResultwhere
*const RcInner<RefCell<RuntimeState>> is !null: UnsafeUnpin,
PhantomData<RcInner<RefCell<RuntimeState>>>: UnsafeUnpin,
*const RcInner<StorageInner> is !null: UnsafeUnpin,
PhantomData<RcInner<StorageInner>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
*const RcInner<MatrixSemantic> is !null: UnsafeUnpin,
PhantomData<RcInner<MatrixSemantic>>: UnsafeUnpin,
PhantomData<Rc<()>>: UnsafeUnpin,
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