pub enum Seq2SeqBatch<B: Backend> {
Padded(PaddedSeq2SeqBatch<B>),
Packed(PackedSeq2SeqBatch<B>),
}Available on crate feature
std only.Expand description
Explicit native paired device batch for padded or packed encoder-decoder models.
Variants§
Padded(PaddedSeq2SeqBatch<B>)
Independently padded source and decoder input axes.
Packed(PackedSeq2SeqBatch<B>)
Independently packed paired document axes.
Implementations§
Source§impl<B: Backend> Seq2SeqBatch<B>
impl<B: Backend> Seq2SeqBatch<B>
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for Seq2SeqBatch<B>
impl<B> RefUnwindSafe for Seq2SeqBatch<B>
impl<B> Send for Seq2SeqBatch<B>
impl<B> Sync for Seq2SeqBatch<B>
impl<B> Unpin for Seq2SeqBatch<B>
impl<B> UnsafeUnpin for Seq2SeqBatch<B>
impl<B> UnwindSafe for Seq2SeqBatch<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