pub struct PaddedSeq2SeqBatch<B: Backend> {
pub encoder: PaddedTokenBatch<B>,
pub decoder: PaddedCausalBatch<B>,
}Available on crate feature
std only.Expand description
Native paired padded inputs and unchanged aligned decoder supervision.
Fields§
§encoder: PaddedTokenBatch<B>Actual encoder inputs; no unused encoder-label tensor is allocated.
decoder: PaddedCausalBatch<B>Actual decoder inputs/labels; target_alignment is SamePosition.
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for PaddedSeq2SeqBatch<B>
impl<B> RefUnwindSafe for PaddedSeq2SeqBatch<B>
impl<B> Send for PaddedSeq2SeqBatch<B>
impl<B> Sync for PaddedSeq2SeqBatch<B>
impl<B> Unpin for PaddedSeq2SeqBatch<B>
impl<B> UnsafeUnpin for PaddedSeq2SeqBatch<B>
impl<B> UnwindSafe for PaddedSeq2SeqBatch<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