pub struct QuantParam {
pub name: String,
pub scale: f32,
pub zero_point: i32,
}Expand description
A per-tensor quantization parameter entry.
Fields§
§name: StringTensor name.
scale: f32Quantization scale factor.
zero_point: i32Quantization zero point.
Trait Implementations§
Source§impl Clone for QuantParam
impl Clone for QuantParam
Source§fn clone(&self) -> QuantParam
fn clone(&self) -> QuantParam
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 QuantParam
impl RefUnwindSafe for QuantParam
impl Send for QuantParam
impl Sync for QuantParam
impl Unpin for QuantParam
impl UnsafeUnpin for QuantParam
impl UnwindSafe for QuantParam
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