pub struct TensorEntry {
pub name: String,
pub dtype: TensorDtype,
pub shape: Vec<usize>,
pub off: u64,
pub nbytes: u64,
pub shard: usize,
pub hash: u64,
}Expand description
One tensor directory entry.
Fields§
§name: String§dtype: TensorDtype§shape: Vec<usize>§off: u64Offset relative to the OWNING shard’s data_off, multiple of 64.
nbytes: u64§shard: usizeRuntime-only: which shard’s mmap holds the bytes (0 for the single-file case; not part of the 56-byte record).
hash: u64hash64 of the tensor bytes.
Implementations§
Trait Implementations§
Source§impl Clone for TensorEntry
impl Clone for TensorEntry
Source§fn clone(&self) -> TensorEntry
fn clone(&self) -> TensorEntry
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 TensorEntry
impl Debug for TensorEntry
impl Eq for TensorEntry
Source§impl PartialEq for TensorEntry
impl PartialEq for TensorEntry
Source§fn eq(&self, other: &TensorEntry) -> bool
fn eq(&self, other: &TensorEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TensorEntry
Auto Trait Implementations§
impl Freeze for TensorEntry
impl RefUnwindSafe for TensorEntry
impl Send for TensorEntry
impl Sync for TensorEntry
impl Unpin for TensorEntry
impl UnsafeUnpin for TensorEntry
impl UnwindSafe for TensorEntry
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