pub struct PackedSeq2SeqBatch<B: Backend> {
pub encoder: PackedTokenBatch<B>,
pub decoder: PackedCausalBatch<B>,
}Available on crate feature
std only.Expand description
Native paired packed inputs with independent actual source/decoder boundaries.
Fields§
§encoder: PackedTokenBatch<B>Actual encoder documents, including explicitly empty sources if supplied.
decoder: PackedCausalBatch<B>Actual aligned decoder supervision; no label shift crosses documents.
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for PackedSeq2SeqBatch<B>
impl<B> RefUnwindSafe for PackedSeq2SeqBatch<B>
impl<B> Send for PackedSeq2SeqBatch<B>
impl<B> Sync for PackedSeq2SeqBatch<B>
impl<B> Unpin for PackedSeq2SeqBatch<B>
impl<B> UnsafeUnpin for PackedSeq2SeqBatch<B>
impl<B> UnwindSafe for PackedSeq2SeqBatch<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