pub struct ReferenceTensor {
pub shape: Vec<usize>,
pub data: Vec<f32>,
pub ints: Option<Vec<i64>>,
}Fields§
§shape: Vec<usize>Logical row-major shape, outermost dimension first.
data: Vec<f32>§ints: Option<Vec<i64>>Exact payload for checkpoint I64 index tensors (qwen4_exp n-gram multipliers /
vocab sizes / offsets). f32 cannot carry them (the vocab primes >= 2e7 exceed the
24-bit mantissa and the hash multipliers fill i64), so integer tensors keep data
empty and executors read them through tensor_i64 only.
Implementations§
Trait Implementations§
Source§impl Clone for ReferenceTensor
impl Clone for ReferenceTensor
Source§fn clone(&self) -> ReferenceTensor
fn clone(&self) -> ReferenceTensor
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 ReferenceTensor
impl Debug for ReferenceTensor
Source§impl PartialEq for ReferenceTensor
impl PartialEq for ReferenceTensor
impl StructuralPartialEq for ReferenceTensor
Auto Trait Implementations§
impl Freeze for ReferenceTensor
impl RefUnwindSafe for ReferenceTensor
impl Send for ReferenceTensor
impl Sync for ReferenceTensor
impl Unpin for ReferenceTensor
impl UnsafeUnpin for ReferenceTensor
impl UnwindSafe for ReferenceTensor
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