pub struct QuantizationSpec {
pub format_id: QuantizationFormatId,
pub bits_per_weight: u8,
pub grouping: QuantizationGrouping,
pub packing: QuantizationPacking,
pub scale_type: ElementType,
pub zero_point_type: Option<ElementType>,
}Fields§
§format_id: QuantizationFormatId§bits_per_weight: u8§grouping: QuantizationGrouping§packing: QuantizationPacking§scale_type: ElementType§zero_point_type: Option<ElementType>Implementations§
Source§impl QuantizationSpec
impl QuantizationSpec
pub fn validate(&self) -> Result<(), VNextError>
Trait Implementations§
Source§impl Clone for QuantizationSpec
impl Clone for QuantizationSpec
Source§fn clone(&self) -> QuantizationSpec
fn clone(&self) -> QuantizationSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QuantizationSpec
impl Debug for QuantizationSpec
Source§impl<'de> Deserialize<'de> for QuantizationSpec
impl<'de> Deserialize<'de> for QuantizationSpec
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
impl Eq for QuantizationSpec
Source§impl PartialEq for QuantizationSpec
impl PartialEq for QuantizationSpec
Source§impl Serialize for QuantizationSpec
impl Serialize for QuantizationSpec
impl StructuralPartialEq for QuantizationSpec
Auto Trait Implementations§
impl Freeze for QuantizationSpec
impl RefUnwindSafe for QuantizationSpec
impl Send for QuantizationSpec
impl Sync for QuantizationSpec
impl Unpin for QuantizationSpec
impl UnsafeUnpin for QuantizationSpec
impl UnwindSafe for QuantizationSpec
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