pub struct TensorBatchRow {
pub batch_index: u32,
pub position: i32,
pub sequence_ids: Vec<i32>,
}Expand description
Exact sequence and causal-position metadata for one tensor row.
Fields§
§batch_index: u32Zero-based logical batch entry.
position: i32Native causal position.
sequence_ids: Vec<i32>Exact sequence IDs attached to this entry.
Trait Implementations§
Source§impl Clone for TensorBatchRow
impl Clone for TensorBatchRow
Source§fn clone(&self) -> TensorBatchRow
fn clone(&self) -> TensorBatchRow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TensorBatchRow
impl Debug for TensorBatchRow
impl Eq for TensorBatchRow
Source§impl PartialEq for TensorBatchRow
impl PartialEq for TensorBatchRow
impl StructuralPartialEq for TensorBatchRow
Auto Trait Implementations§
impl Freeze for TensorBatchRow
impl RefUnwindSafe for TensorBatchRow
impl Send for TensorBatchRow
impl Sync for TensorBatchRow
impl Unpin for TensorBatchRow
impl UnsafeUnpin for TensorBatchRow
impl UnwindSafe for TensorBatchRow
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