pub struct TensorLocation {
pub source: String,
pub data_offset: usize,
pub file_offset: Option<usize>,
}Expand description
Where a tensor payload lives.
Fields§
§source: StringFile holding the payload, relative to CheckpointSource::root.
data_offset: usizePayload start relative to that file’s tensor-data section.
file_offset: Option<usize>Payload start from the beginning of the file, when the backend knows it.
Implementations§
Trait Implementations§
Source§impl Clone for TensorLocation
impl Clone for TensorLocation
Source§impl Debug for TensorLocation
impl Debug for TensorLocation
impl Eq for TensorLocation
Source§impl Hash for TensorLocation
impl Hash for TensorLocation
Source§impl PartialEq for TensorLocation
impl PartialEq for TensorLocation
impl StructuralPartialEq for TensorLocation
Auto Trait Implementations§
impl Forget for TensorLocation
impl Freeze for TensorLocation
impl Move for TensorLocation
impl RefUnwindSafe for TensorLocation
impl Send for TensorLocationwhere
RawVecInner: Send,
impl Sync for TensorLocationwhere
RawVecInner: Sync,
impl Unpin for TensorLocation
impl UnsafeUnpin for TensorLocation
impl UnwindSafe for TensorLocationwhere
RawVecInner: 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