pub struct TokenBatchPlan {
pub indices: Vec<usize>,
pub real_tokens: usize,
pub maximum_sequence_length: usize,
pub token_slots: usize,
}Available on crate feature
std only.Expand description
One actual batch’s original source indices and exact work accounting.
Fields§
§indices: Vec<usize>Source indices, in the distributed sampler’s recorded relative order.
real_tokens: usizeReal tokens in these examples, before any caller-side rectangular padding.
maximum_sequence_length: usizeMaximum actual example length.
token_slots: usizeLayout-dependent token slots: sum for packed, rows times maximum for padded.
Trait Implementations§
Source§impl Clone for TokenBatchPlan
impl Clone for TokenBatchPlan
Source§impl Debug for TokenBatchPlan
impl Debug for TokenBatchPlan
impl Eq for TokenBatchPlan
Source§impl PartialEq for TokenBatchPlan
impl PartialEq for TokenBatchPlan
impl StructuralPartialEq for TokenBatchPlan
Auto Trait Implementations§
impl Freeze for TokenBatchPlan
impl RefUnwindSafe for TokenBatchPlan
impl Send for TokenBatchPlan
impl Sync for TokenBatchPlan
impl Unpin for TokenBatchPlan
impl UnsafeUnpin for TokenBatchPlan
impl UnwindSafe for TokenBatchPlan
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.