mistralrs_quant

Trait QuantizedSerde

source
pub trait QuantizedSerde {
    // Required method
    fn name(&self) -> &'static str;

    // Provided methods
    fn isq_serde_supported(&self) -> bool { ... }
    fn serialize(&self) -> Result<Cow<'_, [u8]>> { ... }
    fn deserialize(
        _data: Cow<'_, [u8]>,
        _device: &Device,
    ) -> Result<Arc<dyn QuantMethod>>
       where Self: Sized { ... }
}

Required Methods§

source

fn name(&self) -> &'static str

Provided Methods§

source

fn isq_serde_supported(&self) -> bool

source

fn serialize(&self) -> Result<Cow<'_, [u8]>>

source

fn deserialize( _data: Cow<'_, [u8]>, _device: &Device, ) -> Result<Arc<dyn QuantMethod>>
where Self: Sized,

Implementors§