#[repr(C)]pub struct cuvsScalarQuantizer {
pub min_: f64,
pub max_: f64,
}Expand description
@brief Defines and stores scalar for quantisation upon training
The quantization is performed by a linear mapping of an interval in the float data type to the full range of the quantized int type.
Fields§
§min_: f64§max_: f64Trait Implementations§
Source§impl Clone for cuvsScalarQuantizer
impl Clone for cuvsScalarQuantizer
Source§fn clone(&self) -> cuvsScalarQuantizer
fn clone(&self) -> cuvsScalarQuantizer
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 moreimpl Copy for cuvsScalarQuantizer
Auto Trait Implementations§
impl Freeze for cuvsScalarQuantizer
impl RefUnwindSafe for cuvsScalarQuantizer
impl Send for cuvsScalarQuantizer
impl Sync for cuvsScalarQuantizer
impl Unpin for cuvsScalarQuantizer
impl UnsafeUnpin for cuvsScalarQuantizer
impl UnwindSafe for cuvsScalarQuantizer
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