pub struct WeightMetadata {
pub tensors: HashMap<String, Vec<usize>>,
pub format: WeightFormat,
pub total_size_bytes: u64,
pub dtypes: Vec<DataType>,
pub extra: HashMap<String, Value>,
}Expand description
Weight metadata information
Fields§
§tensors: HashMap<String, Vec<usize>>Available tensor names and their shapes
format: WeightFormatFile format
total_size_bytes: u64Total size in bytes
dtypes: Vec<DataType>Data types used
extra: HashMap<String, Value>Additional metadata
Trait Implementations§
Source§impl Clone for WeightMetadata
impl Clone for WeightMetadata
Source§fn clone(&self) -> WeightMetadata
fn clone(&self) -> WeightMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 WeightMetadata
impl Debug for WeightMetadata
Source§impl<'de> Deserialize<'de> for WeightMetadata
impl<'de> Deserialize<'de> for WeightMetadata
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 Freeze for WeightMetadata
impl RefUnwindSafe for WeightMetadata
impl Send for WeightMetadata
impl Sync for WeightMetadata
impl Unpin for WeightMetadata
impl UnsafeUnpin for WeightMetadata
impl UnwindSafe for WeightMetadata
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