pub struct TokenBatch<I> {
pub plan: TokenBatchPlan,
pub items: Vec<I>,
}Available on crate feature
std only.Expand description
Actual examples paired with the plan used to load them.
Fields§
§plan: TokenBatchPlanThe exact source indices and token cost, not inferred from padded tensors.
items: Vec<I>Loaded source examples; no filler rows.
Auto Trait Implementations§
impl<I> Freeze for TokenBatch<I>
impl<I> RefUnwindSafe for TokenBatch<I>where
Vec<I>: RefUnwindSafe,
impl<I> Send for TokenBatch<I>
impl<I> Sync for TokenBatch<I>
impl<I> Unpin for TokenBatch<I>
impl<I> UnsafeUnpin for TokenBatch<I>where
Vec<I>: UnsafeUnpin,
impl<I> UnwindSafe for TokenBatch<I>where
Vec<I>: UnwindSafe,
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