pub struct SafeTensors {
pub tensors: BTreeMap<String, Array>,
pub metadata: BTreeMap<String, String>,
}Expand description
The tensors and metadata of a safetensors file.
Fields§
§tensors: BTreeMap<String, Array>The tensors by name.
metadata: BTreeMap<String, String>The __metadata__ strings.
Trait Implementations§
Source§impl Clone for SafeTensors
impl Clone for SafeTensors
Source§impl Debug for SafeTensors
impl Debug for SafeTensors
Auto Trait Implementations§
impl Freeze for SafeTensors
impl RefUnwindSafe for SafeTensors
impl Send for SafeTensors
impl Sync for SafeTensors
impl Unpin for SafeTensors
impl UnsafeUnpin for SafeTensors
impl UnwindSafe for SafeTensors
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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