pub struct PerChannelParam {
pub name: String,
pub scales: Vec<f32>,
pub zero_points: Vec<i32>,
pub channel_axis: u32,
}Expand description
Per-channel quantization parameters for a weight tensor.
Fields§
§name: StringTensor name (e.g., weight variable name).
scales: Vec<f32>Per-channel scale factors.
zero_points: Vec<i32>Per-channel zero points.
channel_axis: u32The axis along which channels are quantized (typically 0 for output channels).
Trait Implementations§
Source§impl Clone for PerChannelParam
impl Clone for PerChannelParam
Source§fn clone(&self) -> PerChannelParam
fn clone(&self) -> PerChannelParam
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 moreAuto Trait Implementations§
impl Freeze for PerChannelParam
impl RefUnwindSafe for PerChannelParam
impl Send for PerChannelParam
impl Sync for PerChannelParam
impl Unpin for PerChannelParam
impl UnsafeUnpin for PerChannelParam
impl UnwindSafe for PerChannelParam
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