pub struct LoadedStateDict {
pub tensors: HashMap<String, Tensor>,
pub format: CheckpointFormat,
}Expand description
Unpacked checkpoint tensors alongside detected format metadata.
Fields§
§tensors: HashMap<String, Tensor>Tensors loaded onto the requested device, with *_packed/*_shape unpacked to U/V.
format: CheckpointFormatOriginal format detected on disk (Packed vs. LegacyUnpacked).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LoadedStateDict
impl !UnwindSafe for LoadedStateDict
impl Freeze for LoadedStateDict
impl Send for LoadedStateDict
impl Sync for LoadedStateDict
impl Unpin for LoadedStateDict
impl UnsafeUnpin for LoadedStateDict
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
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more