pub struct SafeTensorEntry {
pub dtype: String,
pub shape: Vec<usize>,
pub data_offsets: [usize; 2],
}Expand description
Metadata description for SafeTensors files.
Fields§
§dtype: String§shape: Vec<usize>§data_offsets: [usize; 2]Trait Implementations§
Source§impl Clone for SafeTensorEntry
impl Clone for SafeTensorEntry
Source§impl Debug for SafeTensorEntry
impl Debug for SafeTensorEntry
Source§impl<'de> Deserialize<'de> for SafeTensorEntry
impl<'de> Deserialize<'de> for SafeTensorEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for SafeTensorEntry
impl Freeze for SafeTensorEntry
impl Move for SafeTensorEntry
impl RefUnwindSafe for SafeTensorEntry
impl Send for SafeTensorEntry
impl Sync for SafeTensorEntry
impl Unpin for SafeTensorEntry
impl UnsafeUnpin for SafeTensorEntry
impl UnwindSafe for SafeTensorEntry
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