pub struct ConfigGroup {
pub weights: WeightsConfig,
pub targets: Vec<String>,
}Expand description
One compressed-tensors config group: a scheme plus the module types it applies to.
Fields§
§weights: WeightsConfigThe quantization scheme for this group.
targets: Vec<String>Module-type targets this group applies to. teeny-quant operates on raw tensor names
rather than a module graph, so this is always ["*"] today – a placeholder for when a
real module-type mapping (e.g. via the ONNX graph) becomes available.
Trait Implementations§
Source§impl Clone for ConfigGroup
impl Clone for ConfigGroup
Source§fn clone(&self) -> ConfigGroup
fn clone(&self) -> ConfigGroup
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 ConfigGroup
impl Debug for ConfigGroup
Source§impl<'de> Deserialize<'de> for ConfigGroup
impl<'de> Deserialize<'de> for ConfigGroup
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 ConfigGroup
impl RefUnwindSafe for ConfigGroup
impl Send for ConfigGroup
impl Sync for ConfigGroup
impl Unpin for ConfigGroup
impl UnsafeUnpin for ConfigGroup
impl UnwindSafe for ConfigGroup
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