pub enum WeightFormat {
PyTorch,
SafeTensors,
Numpy,
Raw,
Onnx,
Custom(u32),
}Expand description
Weight file formats
Variants§
PyTorch
PyTorch tensor format
SafeTensors
Safetensors format
Numpy
NumPy array format
Raw
Raw binary data
Onnx
ONNX format
Custom(u32)
Custom format
Trait Implementations§
Source§impl Clone for WeightFormat
impl Clone for WeightFormat
Source§fn clone(&self) -> WeightFormat
fn clone(&self) -> WeightFormat
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 WeightFormat
impl Debug for WeightFormat
Source§impl<'de> Deserialize<'de> for WeightFormat
impl<'de> Deserialize<'de> for WeightFormat
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
Source§impl Serialize for WeightFormat
impl Serialize for WeightFormat
impl Copy for WeightFormat
Auto Trait Implementations§
impl Freeze for WeightFormat
impl RefUnwindSafe for WeightFormat
impl Send for WeightFormat
impl Sync for WeightFormat
impl Unpin for WeightFormat
impl UnsafeUnpin for WeightFormat
impl UnwindSafe for WeightFormat
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